• 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: Passing FirstResponder calls to next responder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing FirstResponder calls to next responder


  • Subject: Re: Passing FirstResponder calls to next responder
  • From: publiclook <email@hidden>
  • Date: Sat, 9 Aug 2003 10:05:00 -0400

On Friday, August 8, 2003, at 09:55 PM, Kevin Smith wrote:

I have a document-based application that uses combo boxes to modify font families as well as the normal font panel. The interface also uses the font menu and buttons on the interface for bold, italic, etc. When a bold or italic button is pressed, I want the combo box to pass the message to the next responder. If a font name is selected in the font panel, the combo box should select the new font name and also pass the message to the next responder. I realize that I'm probably going to have to create a subclass of NSComboBox to do this, but how to I pass the FirstResponder messages on to the next responder?



Don't subclass NSComboBox for this.
Read about the responder chain. There is no problem sending messages to -nextResponder or even using -tryToPerform:with:.

See the following for information about combining font attributes arbitrarily from multiple sources:
- (void)changeFont:(id)sender
This action method changes the font of the selection for a rich text object, or of all text for a plain text object. If the receiver doesnt use the Font panel, this method does nothing.

This method changes the font by sending a convertFont: message to the shared NSFontManager and applying each NSFont returned to the appropriate text. See the NSFontManager class specification for more information on font conversion.



See Also:  usesFontPanel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Passing FirstResponder calls to next responder
      • From: Kevin Smith <email@hidden>
References: 
 >Passing FirstResponder calls to next responder (From: Kevin Smith <email@hidden>)

  • Prev by Date: Re: Contextual Help
  • Next by Date: Re: Java application packaging questions
  • Previous by thread: Passing FirstResponder calls to next responder
  • Next by thread: Re: Passing FirstResponder calls to next responder
  • Index(es):
    • Date
    • Thread