Re: How to implement font bigger/smaller buttons? (solution)
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.