Re: REPOST: Font Panel usage question
Re: REPOST: Font Panel usage question
- Subject: Re: REPOST: Font Panel usage question
- From: Emma Whan <email@hidden>
- Date: Thu, 13 Mar 2003 19:37:09 +1100
Is your window controller the delegate of the window? If so, the
changeFont message should be sent up the responder chain to the
controller regardless of which tab view brings up the font panel. It
seems strange that the changeFont message is only received by your
controller in some cases. Maybe there is a control in your tabView that
responds to changeFont lower down in the responder chain than your
window.
If your window controller is the delegate of the window and it still
isn't receiving the changeFont message, try setting your controller to
be the delegate of [NSFontManager sharedFontManager]. This might
override the responder chain, but I'm not sure if it will work. Mind
you, if it doesn't work, then I would wonder why NSFontManager has a
setDelegate method at all.
>
Date: Fri, 7 Mar 2003 21:58:56 -0800
>
Subject: REPOST: Font Panel usage question
>
From: Joseph Jones <email@hidden>
>
To: Cocoa Dev Dev <email@hidden>
>
>
Hi,
>
>
I have a question concerning the Font Panel and the Responder CHain in
>
regards to the changeFont selector being called. I have a window with a
>
Tab View on it and 2 tabs. The first tab contains a button that
>
triggers the Font Panel being called. When the font panel displays, and
>
a user interacts with the panel, the changeFont selector on the window
>
controller does not get called. Now, on tab 2, I have another tab view
>
that has a button that does the same thing. However, when the user
>
interacts with the font panel brought up there, then the changeFont
>
selector on my window controller gets called. Now, I thought I had a
>
pretty good grasp on the Responder Chain, but for the life of me I can
>
not figure out what is going on here! Maybe someone on this list can
>
help me clarify this situation.
>
>
Now, for some other sideline issues: Why changeFont as being called as
>
part of the responder chain instead of using a passed in selector I do
>
not understand. It seems to me that passing it a selector to call back
>
on would make life SOOO much simpler. Maybe someone here can explain
>
the reason behind this?
>
>
As well, are there any tools that allow visibility into the message
>
calling that goes on? I might have been able to figure this out myself
>
if I could just have seen who WAS responding to the changeFont call (if
>
anybody) or to determine where the font panel was sending the first
>
message in the chain.
>
>
Thanx,
>
joe
_______________________________________________
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.