Re: (RS)What's the type of a selector?[2]
Re: (RS)What's the type of a selector?[2]
- Subject: Re: (RS)What's the type of a selector?[2]
- From: Alastair Houghton <email@hidden>
- Date: Mon, 30 Oct 2006 17:31:56 +0000
On 30 Oct 2006, at 17:02, David Duncan wrote:
On Oct 29, 2006, at 5:34 AM, Alastair Houghton wrote:
Also, Bill's right that you should use the API to get the string
value. I don't know (because I haven't checked) whether casting
to char * still works on the 64-bit ObjC ABI in Leopard, for
instance. It probably does, but using the API means you're
guaranteed your code will work. Relying on implementation details
doesn't; even documented ones sometimes change.
Don't rely on your knowledge of the 32-bit ObjC ABI to guide you in
the 64-bit ABI. Implementation details are changing, and writing
code that relies on these details will only cause you issues when
you reach the point in time that you decide you want to move your
application to 64-bit.
I think that's what I just said :-) Or at least it's very similar.
Anyway, it's good advice.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden