NSTextView doesn't commit contents back to bound object for drag and drop when non-key
NSTextView doesn't commit contents back to bound object for drag and drop when non-key
- Subject: NSTextView doesn't commit contents back to bound object for drag and drop when non-key
- From: Jim Correia <email@hidden>
- Date: Thu, 1 Dec 2005 18:45:37 -0500
I have an NSTextView whose content is supplied via bindings. When
dragging into the view, anytime the view is not responder, the
contents are not committed back to the bound object. (Surprisingly
enough, objectDidEndEditing: is sent, but this doesn't push the value
back. It seems that NSTextView takes a different path in
resignFirstResponder.)
rdar://4361954
http://homepage.mac.com/jimcorreia/tmp/BindingsTextViewDragAndDrop.zip
Steps to reproduce:
- Build the attached application.
- Run it.
- In the new untitled document, create a new item, then save.
- With first responder set to anything but the Note NSTextView, drag
some text from TextEdit into the note NSTextField.
- When the NSTextView IS NOT first responder, this data is never
committed to the bound object.
Does anyone have a workaround for this problem?
Thanks,
Jim
_______________________________________________
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