• 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: How to choose different implementations of an object method at runtime?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to choose different implementations of an object method at runtime?


  • Subject: Re: How to choose different implementations of an object method at runtime?
  • From: Greg Parker <email@hidden>
  • Date: Thu, 23 Jan 2014 01:02:46 -0800

On Jan 20, 2014, at 12:27 PM, Michael Crawford <email@hidden> wrote:
> I also realize that the 10.8 version returns an autoreleased object whereas the version written a couple of years ago must have the resulting reference freed by the caller.  I'm not sure how Apple pulls that off with a CF reference but I'd love to have a solution for that as well.

The NS/CF bridge means that calling autorelease on a CF object works fine.


--
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: How to choose different implementations of an object method at runtime?
      • From: Michael Crawford <email@hidden>
References: 
 >How to choose different implementations of an object method at runtime? (From: Michael Crawford <email@hidden>)

  • Prev by Date: File association using file magic
  • Next by Date: Re: NSDocument subclass can only be opened once
  • Previous by thread: How to choose different implementations of an object method at runtime?
  • Next by thread: Re: How to choose different implementations of an object method at runtime?
  • Index(es):
    • Date
    • Thread