barry@speaker.metaphor.com (Barry Friedman) (04/23/91)
I'm trying to use the Font Panel/Font Manager to change the font in my
application. I've added the following method in my View subclass to change
the font:
- changeFont:sender // sender is the Font Manager
{
[sender convertFont:font]; // font is my Font object
[self display]; // redisplay my view with the new font
return self;
}
I added the font menu to my application in Interface Builder. Supposedly,
when the font is changed in the font panel, the changeFont: message is
sent down the responder chain, and my view should pick it up. What am I
forgetting here? Is there something I have to do to add the view to the
responder chain?
I would appreciate any help on this. Thanks in advance.
--
Barry_Friedman(); /* "Why stop now, just when I'm hating it?"
- Marvin the Paranoid Android */
--------------------------------------------------------------------------
Barry Friedman | friedman@m4.metaphor.com
Software Engineer | barry@speaker.metaphor.com
Metaphor Computer Systems | ...!{decwrl|apple}!metaphor!speaker!barry
Mountain View, CA | ...!{decwrl|apple}!metaphor!m4!friedman