Re: changing fonts?
Re: changing fonts?
- Subject: Re: changing fonts?
- From: Jerry LeVan <email@hidden>
- Date: Fri, 16 Jul 2004 08:30:22 -0400
For my single (non document) window application that is not a
problem.
I subclassed tableView and added the changeFont message. I also
made the tableView the first responder prior to opening the
font panel.
Jerry
On Jul 16, 2004, at 8:20 AM, John Timmer wrote:
Actually, changing the fonts is going to be the least of your worries.
Catching the font panel's messages about changes is going to be the
real
problem. It's set up to only send messages about font changes on to
the
first responder of the frontmost window - if that doesn't respond,
then the
change is discarded.
There is a way to redirect the font panel so that a window's
controller can
catch its messages and forward them to the appropriate object. It
took me
forever to find the code, though, so if you decide to do this, have me
send
you the code. I don't have the project on this computer, though, or
I'd
include it with this message.
Cheers,
JT
I have a single window application with an editor textView, a status
textView
and a dynamically generated tableView ( the column count is
increased/decreased
frequently) glumped together in a split view.
A user has asked for the ability to change the font/size in the
tableView and
I thought it might be nice to also allow a similar change in the
editor
textView.
I have started reading about the font panel and it appears to me
that I will probably need two menu items, one to open the font panel
and (somehow) capture the font selection and apply it to the editor
table view. ("Set Font For Editor...")
The other menu item, "Set Font For Result Table...", needs to open
the font panel and capture the font selection and apply it to each
of the data cells for the table columns. I will need to remember this
font info so that whenever new columns are added the new font info
has to be set into the new column data cell.
Is this a reasonable "plan A", is their a simpler way to change the
default font for a "whole" table so that as columns are added I don't
have to keep setting the user specified font?
_______________________________________________
This mind intentionally left blank
_______________________________________________
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.