jzhone / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

Add NSNumber value property to USBoolean class to aid working with CoreData #125

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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