• 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
error strings in NSPropertyListSerialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error strings in NSPropertyListSerialization


  • Subject: error strings in NSPropertyListSerialization
  • From: "B.J. Buchalter" <email@hidden>
  • Date: Thu, 27 Mar 2008 21:10:50 -0400


In the docs for [NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:] it has the following comment:


Special Considerations
----------------------
Strings returned in errorString needed to be released by the caller prior to Mac OS X version 10.5. In Mac OS X version 10.5 and later, strings returned inerrorString are memory managed for the caller.




I understand this to mean that prior to 10.5, we needed to do a [errorString release]. But I am very unclear what this means practically for the code that I am writing today.

I am writing code that is linked to the 10.4u SDK. Does this mean that I need to release the string? What happens if my app is run under 10.5?

If I move to the 10.5 SDK, does that mean that I must NOT release the string?

Do I need to detect this at runtime, or can I detect this at compile time?

TIA,

B.J. Buchalter
Metric Halo
http://www.mhlabs.com
	


_______________________________________________

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: error strings in NSPropertyListSerialization
      • From: "Adam R. Maxwell" <email@hidden>
    • Re: error strings in NSPropertyListSerialization
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Subverting the first responder chain
  • Next by Date: Re: Subverting the first responder chain
  • Previous by thread: Re: Subverting the first responder chain
  • Next by thread: Re: error strings in NSPropertyListSerialization
  • Index(es):
    • Date
    • Thread