Changeset 5498
- Timestamp:
- 05/06/08 16:07:04 (1 week ago)
- Files:
-
- WiredClient/trunk/WCConnectionController.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCConnectionController.m
r4819 r5498 95 95 96 96 - (void)_WC_windowWillClose:(NSNotification *)notification { 97 if([self isReleasedWhenClosed] ) {97 if([self isReleasedWhenClosed] && [notification object] == [self window]) { 98 98 [self _saveWindowTemplate]; 99 99 … … 216 216 217 217 - (void)dealloc { 218 [[NSNotificationCenter defaultCenter] removeObserver:self]; 219 218 220 [_name release]; 219 221 [_identifier release]; … … 235 237 addObserver:self 236 238 selector:@selector(_WC_windowWillClose:) 237 name:NSWindowWillCloseNotification 238 object:[self window]]; 239 name:NSWindowWillCloseNotification]; 239 240 } 240 241
