Some TODO resolution and changes.
This commit is contained in:
parent
c8695e4ca2
commit
c6023ee151
|
@ -78,7 +78,7 @@ enum {
|
||||||
appName = [[NSProcessInfo processInfo] processName];
|
appName = [[NSProcessInfo processInfo] processName];
|
||||||
appMenuItem = [[NSMenuItem alloc] initWithTitle:appName action:NULL keyEquivalent:@""];
|
appMenuItem = [[NSMenuItem alloc] initWithTitle:appName action:NULL keyEquivalent:@""];
|
||||||
appMenu = [[NSMenu alloc] initWithTitle:appName];
|
appMenu = [[NSMenu alloc] initWithTitle:appName];
|
||||||
// TODO see if this is safe for the items we don't care about
|
// TODO this is not safe for the items we don't care about
|
||||||
[appMenu setAutoenablesItems:NO];
|
[appMenu setAutoenablesItems:NO];
|
||||||
[appMenuItem setSubmenu:appMenu];
|
[appMenuItem setSubmenu:appMenu];
|
||||||
[menubar addItem:appMenuItem];
|
[menubar addItem:appMenuItem];
|
||||||
|
@ -126,7 +126,7 @@ enum {
|
||||||
title = [@"Quit " stringByAppendingString:appName];
|
title = [@"Quit " stringByAppendingString:appName];
|
||||||
item = [[NSMenuItem alloc] initWithTitle:title action:@selector(onClicked:) keyEquivalent:@"q"];
|
item = [[NSMenuItem alloc] initWithTitle:title action:@selector(onClicked:) keyEquivalent:@"q"];
|
||||||
[item setTarget:self];
|
[item setTarget:self];
|
||||||
//TODO [item setEnabled:NO];
|
[item setEnabled:NO];
|
||||||
[appMenu addItem:item];
|
[appMenu addItem:item];
|
||||||
self.quitItem = item;
|
self.quitItem = item;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue