• 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
Re: Determining when an NSTextView is being edited?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Determining when an NSTextView is being edited? (From: Nick Zitzmann <email@hidden>)
 >Re: Determining when an NSTextView is being edited? (From: Jaime Magiera <email@hidden>)
 >Re: Determining when an NSTextView is being edited? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Determining when an NSTextView is being edited?
  • Next by Date: Re: Observing NSArrayController arrangedObjects when there is a fetch predicate
  • Previous by thread: Re: Determining when an NSTextView is being edited?
  • Next by thread: NSProgressIndicator needs -display after -setDoubleValue
  • Index(es):
    • Date
    • Thread