Persistent Document Tutorial Trouble
Persistent Document Tutorial Trouble
- Subject: Persistent Document Tutorial Trouble
- From: email@hidden
- Date: Wed, 5 Oct 2005 03:14:50 -0700
Hello everyone, I've got a really troubling thing going on.
I've got the persistent doc tutorial all finished, I went back and
did it again,
and found something interesting.
Instead of deleting the Department column, change it to an
NSTextFieldCell
and bind it to Employees.selection.department.name (so you get the
dept. listed in the table)
Now in this case, you can change the department name in the table view.
BUT, changing it here after a cut operation ( i.e [moc
deleteObject:] ) causes
an exception if the name is changed through the tableview at a later
point...
The exception is: -observeValueForKeyPath:ofObject:change:context:
only defined for abstract class. Define -[NSCFString
observeValueForKeyPath:ofObject:change:context:]!
If the cut method is changed slightly to delete the objects from
NSArrayController it doesn't happen.
I've tried to debug it as much as possible but I just can't find
it... and on some occasions the app crashes...
If anyone has any insight as to why changing or deleting objects
behind the NSArrayControlers' "back"
would cause the bindings to get out of sync, please let me know!
P.S Debugging Bindings is a PITA.
_______________________________________________
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