Re: Bindings and NSTableColumns
Re: Bindings and NSTableColumns
- Subject: Re: Bindings and NSTableColumns
- From: Matt Neuburg <email@hidden>
- Date: Mon, 21 Aug 2006 10:21:26 -0700
- Thread-topic: Bindings and NSTableColumns
On Sun, 20 Aug 2006 23:41:52 -0500, Stephen Deken <email@hidden>
said:
>I'm having trouble getting a binding to update after inline editing
>in an NSTableView. I've got an NSArrayController whose contentArray
>is bound to the values of a key in an NSUserDefaults object. The
>NSTableColumn's value is bound to the arrangedObjects of the
>NSArrayController.
>
>The bindings appear to work -- calling add: on the NSArrayController
>adds an empty NSMutableDictionay to the table, which gets properly
>saved to the plist file. However, editing a value by double-clicking
>on a cell doesn't update the value in the array. The value is reset
>when reloadData: is called on the tableView,
>
>I can tell that the proper value is being examined, because manually
>editing the .plist to add the property (in this case, 'label')
>results in it beung displayed the next time the application is run.
>It's just not updating the data after an inline edit.
>
>Any thoughts?
Got archives?
<http://www.cocoabuilder.com/archive/message/cocoa/2006/4/22/161662>
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
(See the discussion of NSUserDefaults)
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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