Purpose of code changes on this branch:
CoreData stores boolean value as NSNumber objects. Currently to convert a
UBoolean to a core data boolean involves invoking [NSNumber numberWithBool:]
for every property you want to convert.
If we add a numberValue property to the USBoolean class with can make this
easier and cleaner.
I have checked in any code at this stage. But below is my proposal.
USAdditions.h - USBoolean interface
@property (readonly) NSNumber *numberValue;
USAdditions.m - USBoolean implementation
-(NSNumber *)numberValue
{
return [NSNumber numberWithBool:value];
}
After the review, I'll merge this branch into:
/trunk
##please ignore the branch path as i have checked anything in, but its a
require and validated field
Original issue reported on code.google.com by newk...@gmail.com on 24 Dec 2010 at 9:42
Original issue reported on code.google.com by
newk...@gmail.com
on 24 Dec 2010 at 9:42