• 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: Toll-free bridge type at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toll-free bridge type at runtime


  • Subject: Re: Toll-free bridge type at runtime
  • From: Ryan Joseph <email@hidden>
  • Date: Fri, 3 Apr 2009 10:11:37 +0700

Oh, if they're connected on THAT level then there really is no way. So NSArray is a wrapper for CFArray? ;) If the Runtime Wrangler says it can't be done, it probably can't be done. Thanks for clearing this up.

On Apr 3, 2009, at 9:59 AM, Greg Parker wrote:

On Apr 2, 2009, at 7:38 PM, Ryan Joseph wrote:
What I'm really asking is there a way to know where they ORIGINATED from, CoreFoundation API or Cocoa. I said clever because there must be some sub-standard way to get this info, as this is a sub- standard situation.

There is not. For example, [NSMutableArray array] calls CFArrayCreateMutable() to do the work, returning an array that's indistinguishable from the one you get if you call CFArrayCreateMutable() directly.


#0  0x93628d13 in CFArrayCreateMutable ()
#1  0x9366c0ff in -[__NSPlaceholderArray initWithObjects:count:] ()
#2  0x93679c24 in +[NSArray array] ()

Even if you could find some distinguisher, it would almost certainly be unsupported and behave differently in past or future OS versions.


-- Greg Parker email@hidden Runtime Wrangler



Regards, Josef

_______________________________________________

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


References: 
 >Re: Toll-free bridge type at runtime (From: Greg Guerin <email@hidden>)
 >Re: Toll-free bridge type at runtime (From: Ali Ozer <email@hidden>)
 >Re: Toll-free bridge type at runtime (From: Ryan Joseph <email@hidden>)
 >Re: Toll-free bridge type at runtime (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: Toll-free bridge type at runtime
  • Next by Date: Re: How to animate the drawing of UIImages inside a drawRect: method of a UIView?
  • Previous by thread: Re: Toll-free bridge type at runtime
  • Next by thread: Re: Toll-free bridge type at runtime
  • Index(es):
    • Date
    • Thread