Lines Matching full:notificationcenter
390 NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
391 [notificationCenter addObserver:self selector:@selector(windowWillClose:)
393 [notificationCenter addObserver:self selector:@selector(windowBecameKey:)
395 [notificationCenter addObserver:self selector:@selector(windowResignedKey:)
397 [notificationCenter addObserver:self selector:@selector(windowDidMiniaturize:)
399 [notificationCenter addObserver:self selector:@selector(windowDidDeminiaturize:)
402 [notificationCenter addObserver:self selector:@selector(loginWindowDidSwitchFromUser:)
404 [notificationCenter addObserver:self selector:@selector(loginWindowDidSwitchToUser:)
410 NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
411 [notificationCenter removeObserver:self name:NSWindowWillCloseNotification object:nil];
412 [notificationCenter removeObserver:self name:NSWindowDidBecomeKeyNotification object:nil];
413 [notificationCenter removeObserver:self name:NSWindowDidResignKeyNotification object:nil];
414 [notificationCenter removeObserver:self name:NSWindowDidMiniaturizeNotification object:nil];
415 [notificationCenter removeObserver:self name:NSWindowDidDeminiaturizeNotification object:nil];
416 [notificationCenter removeObserver:self name:LoginWindowDidSwitchFromUserNotification object:nil];
417 [notificationCenter removeObserver:self name:LoginWindowDidSwitchToUserNotification object:nil];