• 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: 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


  • Follow-Ups:
    • Re: Toll-free bridge type at runtime
      • From: Ryan Joseph <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>)

  • Prev by Date: Re: Toll-free bridge type at runtime
  • Next by Date: Re: Toll-free bridge type at runtime
  • Previous by thread: Re: Toll-free bridge type at runtime
  • Next by thread: Re: Toll-free bridge type at runtime
  • Index(es):
    • Date
    • Thread