• 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
NSTableView, NSDateFormatter, CoreData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView, NSDateFormatter, CoreData


  • Subject: NSTableView, NSDateFormatter, CoreData
  • From: Space Ship Traveller <email@hidden>
  • Date: Mon, 14 Dec 2009 05:26:17 +0900

Hello,

I have a NSTableView with a CoreData model. This model is irrelevant except for the fact that at least one model class has an optional date field.

I have an NSDateFormatter instantiated in the NIB since there are several columns sharing the same formatting behavior.

When the user enters in a date, this is saved correctly. When the user blanks out the field, I get an error

	The value "" is invalid.
	Please provide a valid value.
		[ Discard Change ] [ OK ]

I can't figure out how to accept a blank input, and map this blank input to nil in the CoreData model. I've tried several things but nothing seems to work.

Kind regards,
Samuel_______________________________________________

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

  • Prev by Date: NSBitmapImageRep - Fallback Background Color for JPEG output
  • Next by Date: Re: Smooth Scrolling for NSScrollView
  • Previous by thread: NSBitmapImageRep - Fallback Background Color for JPEG output
  • Next by thread: NSUndoManager issues
  • Index(es):
    • Date
    • Thread