• 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
Bindings and NSTableColumns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings and NSTableColumns


  • Subject: Bindings and NSTableColumns
  • From: Stephen Deken <email@hidden>
  • Date: Sun, 20 Aug 2006 23:41:52 -0500

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?

Stephen Deken
email@hidden



_______________________________________________
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


  • Prev by Date: Sub NSToolbar???
  • Next by Date: Re: Core Data Fetch Request Template
  • Previous by thread: Re: Sub NSToolbar???
  • Next by thread: Re: Bindings and NSTableColumns
  • Index(es):
    • Date
    • Thread