• 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
committing an NSTextView bound to Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Radix Class
  • Next by Date: may not respond to '-addSubView:'...
  • Previous by thread: Re: Radix Class
  • Next by thread: may not respond to '-addSubView:'...
  • Index(es):
    • Date
    • Thread