• 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: NSOpenPanel problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel problem


  • Subject: Re: NSOpenPanel problem
  • From: "Jan E. Schotsman" <email@hidden>
  • Date: Tue, 24 Jan 2012 17:50:45 +0100


On Jan 23, 2012, at 11:15 PM, Ken Thomases wrote:

I don't know about complaints from the compiler, but I'm certain that ARC can't be used with code deployed to Leopard. ARC requires support from the runtime libraries and that support was never released for Leopard.

Thanks for your help. I didn't realize the runtime needs to support ARC too. Looks like I have to rethink my strategy. I am converting my apps to Cocoa and I intended to keep supporting Leopard, but if this means I cannot use ARC or have to use two different memory management schemes then I'll probably go for Lion only.

I can't imagine that allocating a heap buffer for a serialized string is the best way to get data into the handler. If you are using ARC (which I believe you can't), then try CFBridgingRetain() balanced later with a CFRelease() or CFBridgingRelease().

Ah, bridging to CoreFoundation is indeed much simpler.

Jan E.

_______________________________________________

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


  • Prev by Date: Re: I think I'm ready to throw in the towel - I really need help here
  • Next by Date: NSFetchRequest Problem Under iOS 4.3.5
  • Previous by thread: Re: NSOpenPanel problem
  • Next by thread: Re: Cocoa-dev Digest, Vol 9, Issue 38
  • Index(es):
    • Date
    • Thread