committing an NSTextView bound to Core Data
committing an NSTextView bound to Core Data
- Subject: committing an NSTextView bound to Core Data
- From: Joshua Scott Emmons <email@hidden>
- Date: Sun, 8 Jan 2006 22:11:00 -0600
I have an NSTextView instance programatically bound to the property
of a Core Data entity like so:
[myTextView bind:@"data" toObject:myManagedObject
withKeyPath:@"myProperty" options:nil];
As has been noted about a thousand other places, whenever the
NSTextView looses first responder status, it commits it's data and
the binding takes over, updating my Core Data entity with the latest
value.
My question is, is there any way whatsoever to make the NSTextView
commit it's data without forcing it to relinquish its first responder
status? It doesn't recognize commitEditing messages, so I can't call
that directly. Nor can I register it as an editor with the managed
object context or a controller and call their implementation of
commitEditing as that only sends commitEditing back at the NSTextView
instance (which doesn't support it). I even tried [myTextView
didChangeText] to no effect.
Has anyone heard of a way to work around this particular quirk of
NSTextView?
Cheers,
-Joshua Emmons
_______________________________________________
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