Re: Passing FirstResponder calls to next responder
Re: Passing FirstResponder calls to next responder
- Subject: Re: Passing FirstResponder calls to next responder
- From: Kevin Smith <email@hidden>
- Date: Sat, 9 Aug 2003 18:30:45 -0400
On Saturday, August 9, 2003, at 05:39 PM, publiclook wrote:
On Saturday, August 9, 2003, at 01:59 PM, Kevin Smith wrote:
Alright, back up a bit. I suspect that combo-box is not the right
thing to use in your application and that the standard font panel's
list of favorite fonts etc. is a better and more consistent way to go.
I also suspect that using buttons on the interface to do the same
thing that menus and the font panel do is redundant. However,
assuming you have a good reason for building the application the way
you are in contrary to normally best practices, let us examine the
problem:
Just so you don't think that I'm crazy for wanting to do such a thing,
I posted a screen shot of my application's window
(
http://www.themorgue.org/~kesmit/window.gif). It is a basic style
editor which will eventually export to CSS. The reason that I'm not
just using the standard font panel exclusively is that CSS allows you
to specify multiple fonts as well as a generic font type (e.g.
sans-serif, serif). I want to give the user the capability to add
these things, hence the use of a combo box.
The problem comes after editing the text in the combo box. If I then
click the button to underline, left align, etc., the corresponding
message is sent to the combo box. This is very counter-intuitive since
the user is expecting the underline to apply to the preview pane. The
strange thing is that even though the combo box intercepts the message,
it doesn't actually do anything with it. The text in the combo box is
unchanged.
I guess the easy solution is to just not use the Font panel/menu and
send messages from the button bar directly to the preview instead of
using the first responder. But if anyone has any idea how I can use
the font panel/menu along with the combo box, I'd greatly appreciate it.
Kevin Smith
email@hidden
_______________________________________________
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.