Re: best way to compare selectors?
Re: best way to compare selectors?
- Subject: Re: best way to compare selectors?
- From: Guy English <email@hidden>
- Date: Sat, 5 May 2007 05:47:26 -0400
#define sel_eq( a, b ) ((a)==(b))
Everyone happy now? Hope so. :)
On 5-May-07, at 5:12 AM, Rosyna wrote:
Which would be lovely if it existed in Mac OS X headers, But it
doesn't.
Pointer comparison is specifically mentioned by the Objective-C
spec to work. Therefore, it is future-proof.
Ack, at 5/5/07, j o a r said:
The most future proof and portable way would be to use this
function from objc.h:
BOOL sel_eq (SEL s1, SEL s2);
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden