Re: best way to compare selectors?
Re: best way to compare selectors?
- Subject: Re: best way to compare selectors?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 4 May 2007 19:50:11 +0200
------------------------------
Message: 11
Date: Fri, 4 May 2007 09:51:59 -0700
From: Ken Victor <email@hidden>
Subject: Re: best way to compare selectors?
To: mmalc crawford <email@hidden>
Cc: email@hidden
Message-ID: <p06240802c261149bac82@[192.168.0.20]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
At 9:41 AM -0700 5/4/07, mmalc crawford wrote:
On May 2, 2007, at 3:36 PM, Ken Victor wrote:
whats the best and future proof way to compare 2 selectors?
[...]
but i'm wondering if i could safely use:
selector1 == selector2
This is not necessarily future-proof.
But it look like it should be (according to Objective-C Reference):
The runtime system makes sure each identifier is unique: No two
selectors are the same, and all methods with the same name have the
same selector. Compiled selectors are assigned to a special type,
SEL, to distinguish them from other data. Valid selectors are never
0. You must let the system assign SEL identifiers to methods; it’s
futile to assign them arbitrarily.
_______________________________________________
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