Frameworks/AIUtilities Framework/Source/AIToolbarTabView.m
branchadium-1.5.10.5
changeset 5997 d88e6711d0e0
parent 3737 f06bf1a9d888
equal deleted inserted replaced
5996:1894c44cfd13 5997:d88e6711d0e0
   142 //Resize our window when the tabview selection changes
   142 //Resize our window when the tabview selection changes
   143 - (void)selectTabViewItem:(NSTabViewItem *)tabViewItem
   143 - (void)selectTabViewItem:(NSTabViewItem *)tabViewItem
   144 {
   144 {
   145 	//Update the selected toolbar item (10.3 or higher)
   145 	//Update the selected toolbar item (10.3 or higher)
   146 	if ([[[self window] toolbar] respondsToSelector:@selector(setSelectedItemIdentifier:)]) {
   146 	if ([[[self window] toolbar] respondsToSelector:@selector(setSelectedItemIdentifier:)]) {
   147 		[[[self window] toolbar] setSelectedItemIdentifier:[NSString stringWithFormat:@"%i",[self indexOfTabViewItem:tabViewItem]]];
   147 		[[[self window] toolbar] setSelectedItemIdentifier:[NSString stringWithFormat:@"%i",(int)[self indexOfTabViewItem:tabViewItem]]];
   148 	}
   148 	}
   149 
   149 
   150 	if (tabViewItem != [self selectedTabViewItem]) {
   150 	if (tabViewItem != [self selectedTabViewItem]) {
   151 		if (tabViewItem_loading) {
   151 		if (tabViewItem_loading) {
   152 			//Start the spinning progress indicator
   152 			//Start the spinning progress indicator