• 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: Objective-c Run-time headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-c Run-time headers


  • Subject: Re: Objective-c Run-time headers
  • From: Ofri Wolfus <email@hidden>
  • Date: Sat, 7 Jul 2007 00:38:34 +0300

Just for the record, the ability to treat a pointer to a "random" memory as an object and vice versa makes some really cool stuff possible. Toll free bridging works this way, the objc runtime itself uses some static structs for special classes, and I won't be surprised if NSCopyObject() also uses this fact and uses something like memcpy() to do its magic (of course it's not that easy but that's the idea).

- Ofri

- - - - - - - - - - - - - - - - - - -
http://www.dpompa.com
- - - - - - - - - - - - - - - - - - -


On 06/07/2007, at 18:06, Alastair Houghton wrote:

I'd be inclined to make Objective-C object types implicitly pointer types, rather than always writing e.g. ^NSString as you would in ObjC itself.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Objective-c Run-time headers
      • From: Alastair Houghton <email@hidden>
References: 
 >Objective-c Run-time headers (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: Objective-c Run-time headers (From: Ronald Oussoren <email@hidden>)
 >Re: Objective-c Run-time headers (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: Objective-c Run-time headers (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Cocoa and dead-code stripping
  • Next by Date: Re: Objective-c Run-time headers
  • Previous by thread: Re: Objective-c Run-time headers
  • Next by thread: Re: Objective-c Run-time headers
  • Index(es):
    • Date
    • Thread