• 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
Of FontManagers and responder chains
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Of FontManagers and responder chains


  • Subject: Of FontManagers and responder chains
  • From: Chris Idou <email@hidden>
  • Date: Thu, 29 Oct 2009 04:16:12 -0700 (PDT)


I am trying to implement choosing default fonts, as found in the OS-X 10.6 version of TextEdit's Preferences dialog.

i.e., you press a button, and it brings up the Font Chooser, and you select a font and it shows the name of the font in the dialog.

Now I thought I had it all working, but the trouble is I have the option in System Preferences, Keyboard prefs called "Full Keyboard Access" to allow focus in all controls. When I turn that option off, nothing in my dialog has explicit focus, and so it seems, changeFont: is never called, presumably because my delegate object for the window is not in the responder chain. I've tried to explicitly make my window the first responder, and to make the button the first responder, but apparently no dice, they are not allowed to be first responder, or even in the responder chain, because they have no focusable objects.

I could change the action for NSFontManager, but this breaks things for other uses of the NSFontManager, and seems like a bad idea. I notice that TextEdit when you press a change font in TextEdit Preferences it explicitly makes the text fields to NOT be first responder, so it seems like it is also using the first responder mechanism to make it work. But I can't seem to.


      __________________________________________________________________________________
Get more done like never before with Yahoo!7 Mail.
Learn more: http://au.overview.mail.yahoo.com/
_______________________________________________

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

  • Prev by Date: Re: A distinct group of pictures in the bundle
  • Next by Date: "Could not merge data"-error on save in a single moc app
  • Previous by thread: Re: how to filter available fonts for my application?
  • Next by thread: "Could not merge data"-error on save in a single moc app
  • Index(es):
    • Date
    • Thread