Re: How do you store an NSArray as an attribute in a Core Data entity

2009-03-20 Thread tmowlem
On Mar 19, 2009, at 1:26 AM, tmow...@talktalk.net wrote: I want to store a list of Strings as an attribute of an entity in Core Data but there doesn't appear to be a way to use NSArray (or NSSet or NSDictionary either) as an attribute.?Please can someone explain how you use an NSArray

Re: How do you store an NSArray as an attribute in a Core Data entity

2009-03-19 Thread Chris Hanson
On Mar 19, 2009, at 1:26 AM, tmow...@talktalk.net wrote: I want to store a list of Strings as an attribute of an entity in Core Data but there doesn't appear to be a way to use NSArray (or NSSet or NSDictionary either) as an attribute.?Please can someone explain how you use an NSArray or

Re: How do you store an NSArray as an attribute in a Core Data entity

2009-03-19 Thread Mic Pringle
Have a look at the following ... http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdNSAttributes.html#//apple_ref/doc/uid/TP40001919 -Mic 2009/3/19 Chris Hanson c...@me.com: On Mar 19, 2009, at 1:26 AM, tmow...@talktalk.net wrote: I want to store a list of Strings

Re: How do you store an NSArray as an attribute in a Core Data entity

2009-03-19 Thread Mic Pringle
You can do this quite easily ... just set the entity type as data, and then leave the archiver as default. Then when you want to use the array you just have to cast it into the correct type, and CoreData will handle the unarchiving for you i.e NSArray *myArray = [myManagedObject