Re: SELs in arrays
Re: SELs in arrays
- Subject: Re: SELs in arrays
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 25 Sep 2001 12:05:19 -0700
On Tuesday, September 25, 2001, at 12:04 PM, Ondra Cada wrote:
John,
John C. Randolph (JCR) wrote at Tue, 25 Sep 2001 11:45:20 -0700:
JCR> >I guess it would be cleaner using NSValue, but I'm just used to
the
JCR> >integers ;)))
JCR>
JCR> This won't work, since on Mac OS X and NEXTSTEP, selectors aren't
JCR> integers, but uniqued C strings:
This *will* work, since in any ObjC implementation selectors are
convertible
to int. In NeXT (and therefore Apple) ObjC they are just pointers --
which
is a type convertible to int all right.
I stand corrected. I didn't think it through.
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.