• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView doesn't commit contents back to bound object for drag and drop when non-key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Help on subclassing
  • Next by Date: SCPreferencesCreate
  • Previous by thread: SCPreferencesCreate
  • Next by thread: WebServices: kWSMethodInvocationResult empty?
  • Index(es):
    • Date
    • Thread