Lines Matching refs:nil

109     static ApplicationDelegate *sApplicationDelegate = nil;
112 if (sApplicationDelegate != nil) return sApplicationDelegate;
113 if (checked) return nil;
119 if (NSApp != nil) {
124 if (!shouldInstall) return nil;
135 if ([self.fPreferencesMenu menu] == nil) {
137 NSInteger index = ([self.fAboutMenu menu] != nil) ? 2 : 0;
148 [self.fPreferencesMenu setTarget:nil];
149 [self.fPreferencesMenu setAction:nil];
152 if ([self.fPreferencesMenu menu] == nil) return;
164 if ([self.fAboutMenu menu] == nil) {
174 [self.fAboutMenu setTarget:nil];
175 [self.fAboutMenu setAction:nil];
178 if ([self.fAboutMenu menu] == nil) return;
210 fHandlesDocumentTypes = [bundle objectForInfoDictionaryKey:@"CFBundleDocumentTypes"] != nil || [bundle _hasEAWTOverride:@"DocumentHandler"];
211 fHandlesURLTypes = [bundle objectForInfoDictionaryKey:@"CFBundleURLTypes"] != nil || [bundle _hasEAWTOverride:@"URLHandler"];
226 BOOL aboutAvailable = ([self.fAboutMenu menu] != nil);
227 BOOL aboutEnabled = (aboutAvailable && [self.fAboutMenu isEnabled] && ([self.fAboutMenu target] != nil));
229 BOOL prefsAvailable = ([self.fPreferencesMenu menu] != nil);
230 BOOL prefsEnabled = (prefsAvailable && [self.fPreferencesMenu isEnabled] && ([self.fPreferencesMenu target] != nil));
240 [ctr addObserver:clz selector:@selector(_willFinishLaunching) name:NSApplicationWillFinishLaunchingNotification object:nil];
241 [ctr addObserver:clz selector:@selector(_systemWillPowerOff) name:NSWorkspaceWillPowerOffNotification object:nil];
242 [ctr addObserver:clz selector:@selector(_appDidActivate) name:NSApplicationDidBecomeActiveNotification object:nil];
243 [ctr addObserver:clz selector:@selector(_appDidDeactivate) name:NSApplicationDidResignActiveNotification object:nil];
244 [ctr addObserver:clz selector:@selector(_appDidHide) name:NSApplicationDidHideNotification object:nil];
245 [ctr addObserver:clz selector:@selector(_appDidUnhide) name:NSApplicationDidUnhideNotification object:nil];
251 self.fPreferencesMenu = nil;
252 self.fAboutMenu = nil;
253 self.fDockMenu = nil;
254 self.fDefaultMenuBar = nil;
427 [ctr addObserver:clz selector:@selector(_sessionDidActivate) name:NSWorkspaceSessionDidBecomeActiveNotification object:nil];
428 [ctr addObserver:clz selector:@selector(_sessionDidDeactivate) name:NSWorkspaceSessionDidResignActiveNotification object:nil];
431 [ctr addObserver:clz selector:@selector(_screenDidSleep) name:NSWorkspaceScreensDidSleepNotification object:nil];
432 [ctr addObserver:clz selector:@selector(_screenDidWake) name:NSWorkspaceScreensDidWakeNotification object:nil];
435 [ctr addObserver:clz selector:@selector(_systemDidSleep) name:NSWorkspaceWillSleepNotification object:nil];
436 [ctr addObserver:clz selector:@selector(_systemDidWake) name:NSWorkspaceDidWakeNotification object:nil];
462 if (image == nil) {
463 [dockTile setContentView:nil];
492 if (view == nil) {
537 [NSApp orderFrontStandardAboutPanel:nil];
621 __block NSImage *image = nil;
703 withObject:nil