Re: Determining when an NSTextView is being edited?
Re: Determining when an NSTextView is being edited?
- Subject: Re: Determining when an NSTextView is being edited?
- From: Jaime Magiera <email@hidden>
- Date: Fri, 12 Oct 2007 22:19:40 -0400
On Oct 12, 2007, at 10:02 PM, Nick Zitzmann wrote:
OK, that might work, although it does seem sort of silly that a
text view has to listen to itself to determine when it's being
edited, no? That's why I was hoping there was another way...
In terms of MVC it might make sense. You're wanting something to
happen when the user performs a specific action. So, you register the
interface controller to listen for that action. When the notification
is received, the controller tells the specific interface element to
do something. This is good solution if you wanted to do multiple
things in the interface spawned from one user action. The window
controller or whatever can tweak multiple interface objects after
receiving that notification.
anyway, I hope everything works out,
Jaime Magiera
Sensory Research Network
http://www.sensoryresearch.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden