• 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: How to implement font bigger/smaller buttons? (solution)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to implement font bigger/smaller buttons? (solution)


  • Subject: Re: How to implement font bigger/smaller buttons? (solution)
  • From: Jan Van Boghout <email@hidden>
  • Date: Tue, 29 Oct 2002 12:16:42 +0100

Thanks, I hadn't seen that. It's really easy actually:

- set the button's tag to NSSizeUpFontAction or NSSizeDownAction for bigger/smaller
- set the target to the [NSFontManager sharedFontManager] and the action to modifyFont:

That's all, the font manager does its thing by looking at the sender's (in this case the buttons) tag.

Typical that it's always something this simple :)


Jan

What I need is the ability to make the selected text bigger too

Since TextEdit ia able to do this, I'd have a look at the TextEdit source code.
_______________________________________________
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.

References: 
 >Re: How to implement font bigger/smaller buttons? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: prototyping an interface -> dimming
  • Next by Date: (no subject)
  • Previous by thread: Re: How to implement font bigger/smaller buttons?
  • Next by thread: Re: How to implement font bigger/smaller buttons?
  • Index(es):
    • Date
    • Thread