• 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
best way to compare selectors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

best way to compare selectors?


  • Subject: best way to compare selectors?
  • From: Ken Victor <email@hidden>
  • Date: Wed, 2 May 2007 15:36:23 -0700

whats the best and future proof way to compare 2 selectors?

i've been using:

[NSStringFromSelector( selector1) isEqualToString: NSStringFromSelector( selector2)]

but i'm wondering if i could safely use:

	selector1 == selector2

(which would obviously be faster).

thanx,
ken
_______________________________________________

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


  • Follow-Ups:
    • Re: best way to compare selectors?
      • From: j o a r <email@hidden>
    • Re: best way to compare selectors?
      • From: Rosyna <email@hidden>
    • Re: best way to compare selectors?
      • From: mmalc crawford <email@hidden>
    • Re: best way to compare selectors?
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: How do I make a flexible NSToolbarItem?
  • Next by Date: Re: best way to compare selectors?
  • Previous by thread: Re: How do I make a flexible NSToolbarItem?
  • Next by thread: Re: best way to compare selectors?
  • Index(es):
    • Date
    • Thread