Re: Null entries in property lists
Re: Null entries in property lists
- Subject: Re: Null entries in property lists
- From: Ondra Cada <email@hidden>
- Date: Thu, 14 Apr 2005 14:22:36 +0200
Andrew,
On 14.4.2005, at 9:30, Andrew White wrote:
Is NSNull a valid entry in property lists? The documentation suggests
not, in that it is not explicitly mentioned.
Far as I know, nope.
If not, is there a standardised way of representing a 'null' entry in
a property list (eg an array with data in 0,1,x,3, while 2 is null)?
[NSNumber numberWithInt: 0] is one option.
Myself, I would use a special placeholder (like empty NSData, or even
an NSNull archived into NSData--depends), not to run into problems in
future when you change the code to allow a zero number value :))
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden