Re: Toll-free bridge type at runtime
Re: Toll-free bridge type at runtime
- Subject: Re: Toll-free bridge type at runtime
- From: Greg Parker <email@hidden>
- Date: Thu, 2 Apr 2009 19:59:17 -0700
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
_______________________________________________
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