• 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: Changes won't take in Bound TableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes won't take in Bound TableView


  • Subject: Re: Changes won't take in Bound TableView
  • From: mmalcolm crawford <email@hidden>
  • Date: Fri, 26 Nov 2004 11:41:15 -0800


On Nov 26, 2004, at 9:14 AM, Todd Freese wrote:

I have an NSTableView bound using an NSArrayController to a single NSMutableArray of NSStrings. The NSTableView displays the array and allows the cells to be edited. However, when you exit the cell, the changes disappear and do not update the array.

Unfortunately, dealing with an array of strings is not as straightforward as it might be. If they are actually NSStrings, then they're immutable. KVC will try to change their value in situ, not replace the object, and this obviously won't work...

See for example, <http://www.cocoabuilder.com/archive/message/cocoa/2004/7/10/111440>, <http://www.cocoabuilder.com/archive/message/cocoa/2004/3/19/102078>.

If you can replace your strings with dictionaries, life will be easier...

mmalc
_______________________________________________
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: 
 >Changes won't take in Bound TableView (From: Todd Freese <email@hidden>)

  • Prev by Date: Re: Using an NSView as a sheet
  • Next by Date: Waling window list in visible window order
  • Previous by thread: Changes won't take in Bound TableView
  • Next by thread: flip NSWindow
  • Index(es):
    • Date
    • Thread