• 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: NSNull vs nil in NSManagedObject setValue: v forKey: k
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNull vs nil in NSManagedObject setValue: v forKey: k


  • Subject: Re: NSNull vs nil in NSManagedObject setValue: v forKey: k
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 28 Feb 2010 18:31:11 -0800

On Sun, Feb 28, 2010 at 6:16 PM, Eagle Offshore <email@hidden> wrote:
> Really?  This is a problem somehow?

Yes. You can either provide an object or nil. You gave it an object it
didn't like.

> NSManagedObject couldn't just take the hint and go with nil?

Would you rather an API based on "taking hints" or an API based on
documentation? You can either provide nil or a string. Why should
NSManagedObject assume that an object of a certain class should get
special treatment? Should it do the same for NSValues wrapping an
integer 0? What about NSNoSelectionMarker or NSNotApplicableMarker?

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: NSNull vs nil in NSManagedObject setValue: v forKey: k
      • From: Eagle Offshore <email@hidden>
References: 
 >NSNull vs nil in NSManagedObject setValue: v forKey: k (From: Eagle Offshore <email@hidden>)

  • Prev by Date: NSNull vs nil in NSManagedObject setValue: v forKey: k
  • Next by Date: Re: Suppress or Fix Inverse Relationship Warnings (Mike Abdullah)
  • Previous by thread: NSNull vs nil in NSManagedObject setValue: v forKey: k
  • Next by thread: Re: NSNull vs nil in NSManagedObject setValue: v forKey: k
  • Index(es):
    • Date
    • Thread