Core Data and NSNumber values
Core Data and NSNumber values
- Subject: Core Data and NSNumber values
- From: "HAMILTON, Steven" <email@hidden>
- Date: Fri, 7 Nov 2008 15:23:23 +1000
- Acceptlanguage: en-US, en-AU
- Thread-topic: Core Data and NSNumber values
Hi folks,
I think I'm missing something with Core Data. Value attributes always appear to be stored as an NSNumber with the exception of Decimal types which are stored as NSDecimalNumber. If I choose an attribute to be INT64 then this type doesn't seem to be enforced. I can store any valid NSNumber object in that attribute. There's two issues with understanding;
1) I just want to store INT scalar values. I don't want an Object class stored at all. I want an INT back, not an NSNumber.
2) I want the type enforced so I can't store a decimal when I want an INT.
The docs make no mention of NSNumber's being returned. They all mention normal scalar values.
Steven Hamilton | Solutions Designer | BT Infrastructure | Business Technology | Suncorp | Tel: 07 3135 4684
email@hidden | Level 27, Brisbane Square, 266 George Street, Brisbane
________________________________
This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its related entities "Suncorp".
Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 55 or at suncorp.com.au.
The content of this e-mail is the view of the sender or stated author and does not necessarily reflect the view of Suncorp. The content, including attachments, is a confidential communication between Suncorp and the intended recipient. If you are not the intended recipient, any use, interference with, disclosure or copying of this e-mail, including attachments, is unauthorised and expressly prohibited. If you have received this e-mail in error please contact the sender immediately and delete the e-mail and any attachments from your system.
If this e-mail constitutes a commercial message of a type that you no longer wish to receive please reply to this e-mail by typing Unsubscribe in the subject line.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden