diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-25 13:17:19 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-25 13:17:19 (GMT) |
commit | c54914a3666c0687f5bba776db34263eeb8e810f (patch) | |
tree | c4836aba9f7cc450abefaef930a9bd99fbe22306 /Slimber/Cocoa | |
parent | 0f77a684b42f25052eb1cfa688721e321526a90d (diff) | |
download | swift-c54914a3666c0687f5bba776db34263eeb8e810f.zip swift-c54914a3666c0687f5bba776db34263eeb8e810f.tar.bz2 |
Added About menu.
Diffstat (limited to 'Slimber/Cocoa')
-rw-r--r-- | Slimber/Cocoa/Info.plist | 2 | ||||
-rw-r--r-- | Slimber/Cocoa/Menulet.m | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Slimber/Cocoa/Info.plist b/Slimber/Cocoa/Info.plist index bcbed49..f934a10 100644 --- a/Slimber/Cocoa/Info.plist +++ b/Slimber/Cocoa/Info.plist @@ -24,5 +24,7 @@ <string>NSApplication</string> <key>LSUIElement</key> <string>1</string> + <key>NSHumanReadableCopyright</key> + <string>© 2009 Swift Development Team. All Rights Reserved.</string> </dict> </plist> diff --git a/Slimber/Cocoa/Menulet.m b/Slimber/Cocoa/Menulet.m index b2af97f..4fa7fed 100644 --- a/Slimber/Cocoa/Menulet.m +++ b/Slimber/Cocoa/Menulet.m @@ -75,6 +75,12 @@ [statusMenu addItem: loggedInItem]; [statusMenu addItem: [NSMenuItem separatorItem]]; + // About menu + NSMenuItem* aboutMenuItem = [[NSMenuItem alloc] initWithTitle: @"About Slimber" action: @selector(orderFrontStandardAboutPanel:) keyEquivalent: @""]; + [aboutMenuItem setTarget: [NSApplication sharedApplication]]; + [statusMenu addItem: aboutMenuItem]; + [statusMenu addItem: [NSMenuItem separatorItem]]; + // Exit item NSMenuItem* exitMenuItem = [[NSMenuItem alloc] initWithTitle: @"Exit" action: @selector(terminate:) keyEquivalent: @""]; [exitMenuItem setTarget: [NSApplication sharedApplication]]; |