Core Data data types question

3 views
Skip to first unread message

Jon M. Hanson

unread,
Apr 29, 2012, 6:57:22 PM4/29/12
to nscoders...@googlegroups.com
I'm in the process of designing and developing my first Cocoa application. I've decided that I'd like to use Core Data for the central data that it will contain. Some of the fields in an entity that I'm creating are like an enumeration type in that they have a fixed number of possible values. What's the best way to accomplish something like that in Core Data?
---
Jon M. Hanson (N7ZVJ)
Homepage: http://the-hansons-az.net/drupal
Jabber IM: j...@the-hansons-az.net




Travis Bader

unread,
May 7, 2012, 11:27:02 AM5/7/12
to nscoders...@googlegroups.com
I personally never found a better way than just storing them in a NSNumber and then putting a enum type def in the entity for use in code. Anyone have a better approach?

Travis
> --
> You received this message because you are subscribed to the Google Groups "NSCoders Phoenix" group.
> To post to this group, send email to nscoders...@googlegroups.com.
> To unsubscribe from this group, send email to nscoders-phoen...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nscoders-phoenix?hl=en.
>

Reply all
Reply to author
Forward
0 new messages