The R Project SVN R-packages

Rev

Rev 5715 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5715 Rev 6006
Line 150... Line 150...
150
    // is the toolbar from which the item is being removed.  The item being added is found by referencing the @"item"
150
    // is the toolbar from which the item is being removed.  The item being added is found by referencing the @"item"
151
    // key in the userInfo 
151
    // key in the userInfo 
152
	// NSToolbarItem *removedItem = [[notif userInfo] objectForKey: @"item"];
152
	// NSToolbarItem *removedItem = [[notif userInfo] objectForKey: @"item"];
153
}
153
}
154
 
154
 
155
- (BOOL) validateToolbarItem: (NSToolbarItem *) toolbarItem {
-
 
156
	NSString *iid = [toolbarItem itemIdentifier];
-
 
157
    BOOL enable = YES; // default is YES, if there are any that need to be disabled - check for them
-
 
158
    
-
 
159
	if ([iid isEqual: RETI_Save ])
-
 
160
		enable = [[winCtrl document] isDocumentEdited];
-
 
161
	
-
 
162
    return enable;
-
 
163
}
-
 
164
 
-
 
165
@end
155
@end