Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 7 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | 63 | ||
64 | - (void) visitwebsiteMenuCommand: (id) sender |
64 | - (void) visitwebsiteMenuCommand: (id) sender |
65 | { |
65 | { |
66 | // this functin is invoked when the Visit Website menu item is clicked |
66 | // this functin is invoked when the Visit Website menu item is clicked |
67 | 67 | ||
68 | [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: @" |
68 | [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: @"https://www.pmbaty.com/rick/"]]; // visit the website! |
69 | } |
69 | } |
70 | 70 | ||
71 | @end |
71 | @end |
72 | 72 | ||
73 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
73 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
Line 164... | Line 164... | ||
164 | // create the [AppName] menu |
164 | // create the [AppName] menu |
165 | submenu = [[NSMenu alloc] initWithTitle: @""]; |
165 | submenu = [[NSMenu alloc] initWithTitle: @""]; |
166 | [submenu addItemWithTitle: [@"About " stringByAppendingString: application_name] action: @selector(orderFrontStandardAboutPanel:) keyEquivalent: @""]; |
166 | [submenu addItemWithTitle: [@"About " stringByAppendingString: application_name] action: @selector(orderFrontStandardAboutPanel:) keyEquivalent: @""]; |
167 | [submenu addItem: [NSMenuItem separatorItem]]; |
167 | [submenu addItem: [NSMenuItem separatorItem]]; |
168 | [submenu addItemWithTitle: [@"Hide " stringByAppendingString: application_name] action: @selector(hide:) keyEquivalent: @"h"]; |
168 | [submenu addItemWithTitle: [@"Hide " stringByAppendingString: application_name] action: @selector(hide:) keyEquivalent: @"h"]; |
169 | [[submenu addItemWithTitle: @"Hide Others" action: @selector(hideOtherApplications:) keyEquivalent: @"h"] setKeyEquivalentModifierMask: ( |
169 | [[submenu addItemWithTitle: @"Hide Others" action: @selector(hideOtherApplications:) keyEquivalent: @"h"] setKeyEquivalentModifierMask: (NSEventModifierFlagOption|NSEventModifierFlagCommand)]; |
170 | [submenu addItemWithTitle: @"Show All" action: @selector(unhideAllApplications:) keyEquivalent: @""]; |
170 | [submenu addItemWithTitle: @"Show All" action: @selector(unhideAllApplications:) keyEquivalent: @""]; |
171 | [submenu addItem: [NSMenuItem separatorItem]]; |
171 | [submenu addItem: [NSMenuItem separatorItem]]; |
172 | [submenu addItemWithTitle: [@"Quit " stringByAppendingString: application_name] action: @selector(quitMenuCommand:) keyEquivalent: @"q"]; |
172 | [submenu addItemWithTitle: [@"Quit " stringByAppendingString: application_name] action: @selector(quitMenuCommand:) keyEquivalent: @"q"]; |
173 | 173 | ||
174 | // put the [AppName] menu in the menubar |
174 | // put the [AppName] menu in the menubar |