• 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: (RS)What's the type of a selector?[2]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >What's the type of a selector? (From: Roland Silver <email@hidden>)
 >Re: What's the type of a selector? (From: John Stiles <email@hidden>)
 >(RS)What's the type of a selector?[2] (From: Roland Silver <email@hidden>)
 >Re: (RS)What's the type of a selector?[2] (From: Bill Bumgarner <email@hidden>)
 >Re: (RS)What's the type of a selector?[2] (From: Alastair Houghton <email@hidden>)
 >Re: (RS)What's the type of a selector?[2] (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Scrolling Text Algorithm for a Screen Saver
  • Next by Date: Re: RE: swizzling a class to a subclass inorder to add ivars (& methods) to a class
  • Previous by thread: Re: (RS)What's the type of a selector?[2]
  • Next by thread: Re: What's the type of a selector?
  • Index(es):
    • Date
    • Thread