Hi everyone,
I have a Core Data entity which needs a gender property. I just need one of two, the standard male or female values. What's the best practice for this in Core Data?
In the .NET world with databases I would've created a Gender table, with foreign key in the child table. I'm still getting my head around Core Data right now - any suggestions would be greatly appreciated.
Cheers, Dany.
UPDATE
Based on the comments here I have added an extra NSString property in my Core Data entity called gender
. Its getter and setter manipulate the isMale
property value. The UI is bound to gender
- works a treat so far! Thanks for the help everyone.