Skip to content

Commit

Permalink
Move Scripts menu to left of Window menu.
Browse files Browse the repository at this point in the history
The Xcode menu bar now ends with Window then Help, like other OS X apps.
  • Loading branch information
tom-seddon committed May 30, 2012
1 parent ac077a8 commit a9a284d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions XCFixin_UserScripts/XCFixin_UserScripts.m
Expand Up @@ -638,14 +638,14 @@ -(BOOL)install
return NO;
}

NSInteger helpIndex=[mainMenu indexOfItemWithTitle:@"Help"];
if(helpIndex<0)
helpIndex=[mainMenu numberOfItems];
NSInteger menuIndex=[mainMenu indexOfItemWithTitle:@"Window"];
if(menuIndex<0)
menuIndex=[mainMenu numberOfItems];

NSMenuItem *scriptsMenuItem=[mainMenu insertItemWithTitle:@"Scripts"
action:NULL
keyEquivalent:@""
atIndex:helpIndex];
atIndex:menuIndex];
[scriptsMenuItem setEnabled:YES];

NSMenu *scriptsMenu=[[[NSMenu alloc] initWithTitle:@"Scripts"] autorelease];
Expand Down

0 comments on commit a9a284d

Please sign in to comment.