Revision: 7252 http://skim-app.svn.sourceforge.net/skim-app/?rev=7252&view=rev Author: hofman Date: 2011-05-24 17:22:59 +0000 (Tue, 24 May 2011)
Log Message: ----------- simplify pref window class Modified Paths: -------------- trunk/SKPreferenceWindow.m Modified: trunk/SKPreferenceWindow.m =================================================================== --- trunk/SKPreferenceWindow.m 2011-05-23 12:12:15 UTC (rev 7251) +++ trunk/SKPreferenceWindow.m 2011-05-24 17:22:59 UTC (rev 7252) @@ -41,16 +41,8 @@ @implementation SKPreferenceWindow -- (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 ([[SKPreferenceWindow 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. ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit