It has to be strings because that's the definition of a property list and that 
method writes a property list representation. 

On 04-Oct-2010, at 9:00 PM, Remco Poelstra wrote:

> Op 4-10-2010 14:55, Roland King schreef:
>> http://developer.apple.com/library/mac/#documentation/cocoa/Conceptual/PropertyLists/AboutPropertyLists/AboutPropertyLists.html%23//apple_ref/doc/uid/10000048i-CH3-46719-CJBIGFCD
>> 
>> No. writeToFile: writes a property list representation of the dictionary and 
>> from the above you can see that NSDictionary must have String keys to be a 
>> property list.
>> 
>> You could turn it into NSData and write it like that perhaps.
> 
> Thanks for your reply.
> I don't see why it have to be strings, just because it will be an XML file, 
> but if it's not possible than that's OK for me. I just hoped that using 
> NSNumber would make it faster (to look up), since it requires less 
> conversions.
> 
> Regards,
> 
> Remco Poelstra
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
> 
> This email sent to r...@rols.org

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to