Re: [Mysql-cocoa-users] Yep, got one ;) - updating a table to disk
Brought to you by:
sergecohen
|
From: Aaron J. <aj...@ed...> - 2004-07-19 21:57:59
|
This sounds like more of a Cocoa question than an SMySQL question as it really has nothing to do with the underlying storage. Either way, it sounds like you are using the wrong notification. Try looking into NSControlTextDidChangeNotification. On Jul 19, 2004, at 4:01 PM, John Spicer wrote: > Was not sure if this list was even used. Have seen little about using > this framework. But here goes. > > Just staring out to try and get this to work. I have a table loaded > and displayed in a NSTableView. > > I have it registered with the notification center so when a user > finishes editing a cell, it calls a method called updateTable- the > idea being that the changes will be written back to the database. > > Alas, the notification is being called BEFORE the setObjectValue > method, so the data is still old (ie I'm getting it from the array of > NSMutableDictionaries. > > Where is the best place to do this? Perhaps right from the the > setObjectValue method? |