• 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: Saving NSFonts and changedFont: trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving NSFonts and changedFont: trouble


  • Subject: Re: Saving NSFonts and changedFont: trouble
  • From: Michael Vannorsdel <email@hidden>
  • Date: Wed, 9 Apr 2008 10:40:35 -0600

The responder chain works something like this:

user event->active application->application's key window->window's first responder if accepts, otherwise next view in line gets it. Whether or not delegate messages are sent is upto one of the responders in the chain to send them.

The only sure way of intercepting messages to the textview is to make your own subclass of it and use that, overriding various methods.


On Apr 9, 2008, at 8:25 AM, Thomas Backman wrote:

Hmm, I just noticed that if I do
   [mainWindow makeFirstResponder:textView];

It never works. In other words, when the text view IS the first responder, it breaks. Otherwise, it seems to work great.
I'll be honest, I don't understand the responder chain, and I'm about to read through cocoa fundamentals, but: could somebody give me a hint how to intercept/receive the message sent directly to the textview?

_______________________________________________

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: 
 >Saving NSFonts and changedFont: trouble (From: Thomas Backman <email@hidden>)
 >Re: Saving NSFonts and changedFont: trouble (From: Thomas Backman <email@hidden>)

  • Prev by Date: Re: NSUInteger question
  • Next by Date: Re: Tips to deploy applications to multiple Mac OS X versions
  • Previous by thread: Re: Saving NSFonts and changedFont: trouble
  • Next by thread: Re: Saving NSFonts and changedFont: trouble
  • Index(es):
    • Date
    • Thread