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 gpar...@apple.com Runtime Wrangler
Regards,
Josef
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com