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: Kirk Kerekes <email@hidden>
- Date: Fri, 9 Aug 2002 12:02:53 -0500
It would be very handy to be able to compare selectors in a switch
statement -- particularly for menu validation -- but addresses (AFAIK) are
not const at compile-time and the compiler justifiably complains.
Is there a straightforward, robust method for doing a switch on a selector?
Yes, I know that (in principle) this puts a ding in the total virtuality of
the Obj-C system, but I am only interested in switching on selectors that
are available at compile-time. Anything else would just get passed to
default: [super validateMenuItem:item].
_______________________________________________
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.