Re: working with font manager
Re: working with font manager
- Subject: Re: working with font manager
- From: Fritz Anderson <email@hidden>
- Date: Fri, 25 Jul 2003 09:29:13 -0500
The controller object for your preference window would have an outlet
for the sample text field, a reference to each NSFont you keep track
of, and some way of knowing which NSFont is the current target. The
controller is the delegate (-[NSFontManager setDelegate:]) of the
shared NSFontManager. When the controller receives changeFont:, it
passes the current font through convertFont: to get the new font, and
tells both the sample text and any affected main text to change
accordingly. There is no need to subclass NSTextField.
-- F
On Friday, 25 July 2003, at 3:18 AM, Francisco Tolmasky wrote:
Ok, I'm kind of confused. All I want is a system like Project
Builder's where when I change the font in the preferences the little
text field updates and all the text in the app changes. This is the
ONLY place the font panel will be used. Do I need to subclass
nstextfield to respond to fotn manager changes? Is there a way to
make sure that only that one text field EVER listens to font manager
changes?
--
Fritz Anderson - Consulting Programmer - Chicago, IL
Mail: <email@hidden>
Risumi: <
http://resume.manoverboard.org>
_______________________________________________
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.