From: <ho...@us...> - 2011-05-24 17:23:58
|
Revision: 17904 http://bibdesk.svn.sourceforge.net/bibdesk/?rev=17904&view=rev Author: hofman Date: 2011-05-24 17:23:52 +0000 (Tue, 24 May 2011) Log Message: ----------- simplify pref window class Modified Paths: -------------- trunk/bibdesk/BDSKPreferenceWindow.m Modified: trunk/bibdesk/BDSKPreferenceWindow.m =================================================================== --- trunk/bibdesk/BDSKPreferenceWindow.m 2011-05-24 06:34:52 UTC (rev 17903) +++ trunk/bibdesk/BDSKPreferenceWindow.m 2011-05-24 17:23:52 UTC (rev 17904) @@ -41,16 +41,8 @@ @implementation BDSKPreferenceWindow -- (void)toggleToolbarShown:(id)sender {} -- (void)runToolbarCustomizationPalette:(id)sender {} - -- (BOOL)validateMenuItem:(NSMenuItem *)menuItem { - if ([menuItem action] == @selector(toggleToolbarShown:) || [menuItem action] == @selector(runToolbarCustomizationPalette:)) - return NO; - else if ([[BDSKPreferenceWindow superclass] instancesRespondToSelector:_cmd]) - return [super validateMenuItem:menuItem]; - else - return YES; +- (BOOL)respondsToSelector:(SEL)aSelector { + return aSelector != @selector(toggleToolbarShown:) && aSelector != @selector(runToolbarCustomizationPalette:) && [super respondsToSelector:aSelector]; } @end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |