Re: NSOutlineView binding and row editing problem
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