• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: best way to compare selectors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >best way to compare selectors? (From: Ken Victor <email@hidden>)
 >Re: best way to compare selectors? (From: j o a r <email@hidden>)
 >Re: best way to compare selectors? (From: Rosyna <email@hidden>)

  • Prev by Date: Re: best way to compare selectors?
  • Next by Date: Joseph has Tagged you! :)
  • Previous by thread: Re: best way to compare selectors?
  • Next by thread: Re: best way to compare selectors?
  • Index(es):
    • Date
    • Thread