Re: Converting from scalar to NSNumber*

2015-02-27 Thread Sean McBride
On Fri, 27 Feb 2015 16:28:58 -0800, Rick Mann said: >I'm updating some older Core Data code in which I made liberal use of >transient properties to map NSNumber* types to scalar types like >uint32_t. In practice, this doesn't gain much, especially with boxing >syntax, and it makes the Core Data cl

Re: Converting from scalar to NSNumber*

2015-02-27 Thread Rick Mann
> On Feb 27, 2015, at 18:32 , Charles Srstka wrote: > > A quick-and-dirty way to do this is to simply change the name of the > property. This will cause every reference to that attribute to throw an > error. Then you go fix all the errors, adding .integerValue in the process. > After you’re d

Re: Converting from scalar to NSNumber*

2015-02-27 Thread Charles Srstka
On Feb 27, 2015, at 6:28 PM, Rick Mann wrote: > > I'm updating some older Core Data code in which I made liberal use of > transient properties to map NSNumber* types to scalar types like uint32_t. In > practice, this doesn't gain much, especially with boxing syntax, and it makes > the Core Dat

Re: Converting from scalar to NSNumber*

2015-02-27 Thread Rick Mann
Ah yes. Same with mine. Sent from my iPhone > On Feb 27, 2015, at 16:53, Greg Parker wrote: > > >> On Feb 27, 2015, at 4:46 PM, Rick Mann wrote: >> >> >>> On Feb 27, 2015, at 16:45 , Greg Parker wrote: >>> >>> On Feb 27, 2015, at 4:28 PM, Rick Mann wrote: I'm updating s

Re: Converting from scalar to NSNumber*

2015-02-27 Thread Greg Parker
> On Feb 27, 2015, at 4:46 PM, Rick Mann wrote: > > >> On Feb 27, 2015, at 16:45 , Greg Parker wrote: >> >> >>> On Feb 27, 2015, at 4:28 PM, Rick Mann wrote: >>> >>> I'm updating some older Core Data code in which I made liberal use of >>> transient properties to map NSNumber* types to sc

Re: Converting from scalar to NSNumber*

2015-02-27 Thread Rick Mann
> On Feb 27, 2015, at 16:45 , Greg Parker wrote: > > >> On Feb 27, 2015, at 4:28 PM, Rick Mann wrote: >> >> I'm updating some older Core Data code in which I made liberal use of >> transient properties to map NSNumber* types to scalar types like uint32_t. >> In practice, this doesn't gain m

Re: Converting from scalar to NSNumber*

2015-02-27 Thread Greg Parker
> On Feb 27, 2015, at 4:28 PM, Rick Mann wrote: > > I'm updating some older Core Data code in which I made liberal use of > transient properties to map NSNumber* types to scalar types like uint32_t. In > practice, this doesn't gain much, especially with boxing syntax, and it makes > the Core

Converting from scalar to NSNumber*

2015-02-27 Thread Rick Mann
I'm updating some older Core Data code in which I made liberal use of transient properties to map NSNumber* types to scalar types like uint32_t. In practice, this doesn't gain much, especially with boxing syntax, and it makes the Core Data classes messier (shadow attributes, etc.). The problem