• 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: NSPropertyListSerialization violates object ownership rules?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPropertyListSerialization violates object ownership rules?


  • Subject: Re: NSPropertyListSerialization violates object ownership rules?
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 7 Oct 2002 01:53:28 +0200

On Monday, October 7, 2002, at 01:02 , Jim Correia wrote:

+ (NSData *)dataFromPropertyList:(id)plist format:(NSPropertyListFormat)
format errorDescription:(NSString **)errorString
Returns an NSData object in the property list format specified by plist or nil if plist does not represent a valid property list. plist must be a kind of NSData, NSString, NSNumber, NSDate, NSArray, or NSDictionary.
Container objects must also contain only these kinds of objects. On return, if the conversion is successful, errorString is nil. If the conversion fails, errorString points to a string describing the nature of the error. If you receive a string, you must release it. Possible values for format are described in "Constants".

Is this correct? (That I must release the error string? That is the current implementation seems to agree with the documentation, but seems counter to the usual memory management rules.)

Well it definitely does not looks as correct. I don't see a reason for this exception to rules either... IMHO, should be filled as a bug.

(Nevertheless, to be fair, there still might be a good reason which I've overlooked...)
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >NSPropertyListSerialization violates object ownership rules? (From: Jim Correia <email@hidden>)

  • Prev by Date: NSPropertyListSerialization violates object ownership rules?
  • Next by Date: Re: NSPropertyListSerialization violates object ownership rules?
  • Previous by thread: NSPropertyListSerialization violates object ownership rules?
  • Next by thread: Re: NSPropertyListSerialization violates object ownership rules?
  • Index(es):
    • Date
    • Thread