Skip to content

Commit 03ac736

Browse files
committed
- Hide the User Manager from the 0.9.7 branch so it can be released in fully polished and tested form
1 parent fd8ce53 commit 03ac736

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

Interfaces/English.lproj/MainMenu.xib

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</object>
1313
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
1414
<bool key="EncodedWithXMLCoder">YES</bool>
15-
<integer value="57"/>
15+
<integer value="29"/>
1616
</object>
1717
<object class="NSArray" key="IBDocument.PluginDependencies">
1818
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -1275,6 +1275,7 @@
12751275
<reference key="NSMenu" ref="172963563"/>
12761276
<bool key="NSIsDisabled">YES</bool>
12771277
<bool key="NSIsSeparator">YES</bool>
1278+
<bool key="NSIsHidden">YES</bool>
12781279
<string key="NSTitle"/>
12791280
<string key="NSKeyEquiv"/>
12801281
<int key="NSKeyEquivModMask">1048576</int>
@@ -1284,6 +1285,8 @@
12841285
</object>
12851286
<object class="NSMenuItem" id="718573983">
12861287
<reference key="NSMenu" ref="172963563"/>
1288+
<bool key="NSIsDisabled">YES</bool>
1289+
<bool key="NSIsHidden">YES</bool>
12871290
<string key="NSTitle">User Accounts...</string>
12881291
<string key="NSKeyEquiv">u</string>
12891292
<int key="NSKeyEquivModMask">1048576</int>
@@ -4673,7 +4676,7 @@
46734676
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
46744677
<integer value="1"/>
46754678
<string>{{449, 1007}, {197, 53}}</string>
4676-
<string>{{666, 356}, {511, 20}}</string>
4679+
<string>{{491, 356}, {511, 20}}</string>
46774680
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
46784681
<integer value="1"/>
46794682
<string>{{506, 836}, {511, 20}}</string>
@@ -4744,15 +4747,15 @@
47444747
<integer value="1"/>
47454748
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
47464749
<integer value="1"/>
4747-
<string>{{678, 103}, {215, 253}}</string>
4750+
<string>{{503, 103}, {215, 253}}</string>
47484751
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
47494752
<integer value="1"/>
47504753
<string>{{518, 583}, {218, 253}}</string>
47514754
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
47524755
<integer value="1"/>
47534756
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
47544757
<integer value="1"/>
4755-
<string>{{600, 317}, {255, 203}}</string>
4758+
<string>{{733, 153}, {255, 203}}</string>
47564759
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
47574760
<integer value="1"/>
47584761
<string>{{312, 683}, {231, 153}}</string>

Source/TableDocument.m

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3248,15 +3248,6 @@ - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString
32483248
[toolbarItem setTarget:self];
32493249
[toolbarItem setAction:@selector(viewRelations:)];
32503250

3251-
} else if ([itemIdentifier isEqualToString:MAIN_TOOLBAR_USER_MANAGER]) {
3252-
[toolbarItem setLabel:NSLocalizedString(@"Users", @"toolbar item label for switching to the User Manager tab")];
3253-
[toolbarItem setPaletteLabel:NSLocalizedString(@"Users", @"toolbar item label for switching to the User Manager tab")];
3254-
//set up tooltip and image
3255-
[toolbarItem setToolTip:NSLocalizedString(@"Switch to the User Manager tab", @"tooltip for toolbar item for switching to the User Manager tab")];
3256-
[toolbarItem setImage:[NSImage imageNamed:NSImageNameEveryone]];
3257-
//set up the target action
3258-
[toolbarItem setTarget:self];
3259-
[toolbarItem setAction:@selector(showUserManager:)];
32603251
} else {
32613252
//itemIdentifier refered to a toolbar item that is not provided or supported by us or cocoa
32623253
toolbarItem = nil;
@@ -3281,7 +3272,6 @@ - (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar
32813272
MAIN_TOOLBAR_CUSTOM_QUERY,
32823273
MAIN_TOOLBAR_TABLE_INFO,
32833274
MAIN_TOOLBAR_TABLE_RELATIONS,
3284-
MAIN_TOOLBAR_USER_MANAGER,
32853275
NSToolbarCustomizeToolbarItemIdentifier,
32863276
NSToolbarFlexibleSpaceItemIdentifier,
32873277
NSToolbarSpaceItemIdentifier,
@@ -3303,7 +3293,6 @@ - (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar*)toolbar
33033293
MAIN_TOOLBAR_CUSTOM_QUERY,
33043294
NSToolbarFlexibleSpaceItemIdentifier,
33053295
MAIN_TOOLBAR_HISTORY_NAVIGATION,
3306-
MAIN_TOOLBAR_USER_MANAGER,
33073296
MAIN_TOOLBAR_SHOW_CONSOLE,
33083297
nil];
33093298
}

0 commit comments

Comments
 (0)