• 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: NSOutlineView binding and row editing problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView binding and row editing problem


  • Subject: Re: NSOutlineView binding and row editing problem
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 7 Dec 2005 05:19:04 -0500


On Dec 7, 2005, at 4:46 AM, David Chan wrote:

Hi All,

I am currently trying to use NSTreeController binding to manage the
content of my NSOutlineView, reason being is that I am trying to use
Core Data for my application at the moment. Now when a user is trying
to edit a row (double clicking, type and return), I would like to
validate the entry before it gets updated. Previously I override
setObjectValue: forTableColumn: byItem: method. If the new entry is
invalid, I will simply not update the row and return the old value.

But that means I cannot use NSTreeController since I must set the
datasource to a controller class right? Is there a work around for
this?

can you not do the validation at the model level using Key-Value Validation??

you'd want to turn on Immediately Validates for the binding most likely
_______________________________________________
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
References: 
 >NSOutlineView binding and row editing problem (From: David Chan <email@hidden>)

  • Prev by Date: NSOutlineView binding and row editing problem
  • Next by Date: cocoa-carbon interface design quandary
  • Previous by thread: NSOutlineView binding and row editing problem
  • Next by thread: cocoa-carbon interface design quandary
  • Index(es):
    • Date
    • Thread