• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: xcode 2.2 coredata accessors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xcode 2.2 coredata accessors


  • Subject: Re: xcode 2.2 coredata accessors
  • From: Miguel Sanchez <email@hidden>
  • Date: Mon, 14 Nov 2005 18:29:02 -0800

The issue is related to handling of nil values for accessors that use primitive types instead of an object class (NSNumber).

Basically, if you HAVE NOT generated your own accessors, the default managed object implementation behaves as if the accessors were taking full objects (NSNumbers). So we decided to make the change in the generated accessors to use NSNumber and achieve functional parity with default non-accessor behavior.
Having accessors that use primitive values might make some of the UI code (specially using bindings) behave a bit different from the non- accessor case when it comes to interpreting nil values.

So yes, we recommend that you change your old accessors to use NSNumber.

Miguel Sanchez
Core Data Team




On Nov 14, 2005, at 3:09 AM, email@hidden wrote:

Hi

In Xcode 2.1, accessors for numeric values automatically created by xcode from the core data model with "Copy Method Implementations" were like
(float)mynumber
(int)mynumber


Xcode 2.2 now creates accessors which are all
(NSNumber *)mynumber

Should I replace all my previous int/float accessors with the new NSNumber* accessors or do they still perform as well as before?

Thanks
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: xcode 2.2 coredata accessors
      • From: AurĂ©lien HugelĂ© <email@hidden>
    • Re: xcode 2.2 coredata accessors
      • From: Jim Correia <email@hidden>
    • Re: xcode 2.2 coredata accessors
      • From: mmalcolm crawford <email@hidden>
References: 
 >xcode 2.2 coredata accessors (From: "email@hidden" <email@hidden>)

  • Prev by Date: Continous updates from NSForm
  • Next by Date: Re: CoreData: Attr. uniqueness, Multithreading
  • Previous by thread: xcode 2.2 coredata accessors
  • Next by thread: Re: xcode 2.2 coredata accessors
  • Index(es):
    • Date
    • Thread