Re: How to validate the Undo menu item?
Re: How to validate the Undo menu item?
- Subject: Re: How to validate the Undo menu item?
- From: Matt Neuburg <email@hidden>
- Date: Wed, 7 Aug 2002 20:46:08 -0700
On Wed, 7 Aug 2002 16:08:50 -0700, Dustin Voss <email@hidden> said:
>
NSString *sel = NSStringFromSelector([item action]);
>
if ([sel isEqualToString:@"undo:"])
>
P.S. Is there a better way to check for equality of SELs?
Are you saying that
([item action] == @selector(undo:))
fails on your machine? m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.