Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.programmer.help > #20
| From | LPT <no@ahha.net> |
|---|---|
| Newsgroups | comp.sys.mac.programmer.help |
| Subject | NSArrayController removes fails, sort of |
| Date | 2011-04-29 10:33 -0500 |
| Message-ID | <lb2r88-2gi.ln1@Hedley.internal.thethurmans.com> (permalink) |
I have an NSTableView column bound to an NSArrayController which itself is bound to an NSMutableArray. The data is displayed as expected, but when I remove an item, although it does disappear from the table, the change is not written to disk when the application quits. I use NSKeyedArchiver to persist the array to disk upon quitting. When the application quits, the original array including the removed items is written to disk. I did some debugging and found that after the items are removed from the array controller, the underlying array does indeed reflect the removal, but something happens between there and quitting the application that brings the removed items back into the array. My application also uses an NSPopupButton to display these same items. It is also bound to the same array controller as the table view column. I suspect that this is somehow a problem, but can someone enlighten me? TIA
Back to comp.sys.mac.programmer.help | Previous | Next | Find similar
NSArrayController removes fails, sort of LPT <no@ahha.net> - 2011-04-29 10:33 -0500
csiph-web