Re: NSFontPanel problem
Re: NSFontPanel problem
- Subject: Re: NSFontPanel problem
- From: Steve Sims <email@hidden>
- Date: Sun, 13 Jun 2004 15:08:47 -0400
Hi Alexandre,
I wish I could give you a solution to this problem, since I'm seeing a
similar problem in my own app. In my case I return the valid modes as
NSFontPanelFaceModeMask with NSFontPanelCollectionModeMask in my font
panel delegate and never change how I wish the font panel to be
displayed. The font panel that appears sure enough doesn't have the
font size selector (as desired) but there's just a blank gap where the
size selector should be. If you resize the font panel then the lists
expand to fill the panel, giving the appearance you would normally
expect.
Having read your message this would seem to be the same problem that
you're experiencing.
This seems to me to be a bug since the panel should fully update its
display according to the valid modes.
Now I haven't bothered to try to solve this problem, since my app still
functions properly. However it strikes me that you could force the
panel to update itself when the validModesForFontPanel gets called.
Since from my observation resizing seems to fix the display maybe
sending a pair of resize messages to increase the size of the panel and
then set it back to what it was before would work? (See NSWindow's
frame and setFrame calls.)
If you try this out please let me know how you get along.
Cheers,
Steve
On 12 Jun 2004, at 23:46, Alexandre wrote:
No answers from anyone but I just can't believe that I would be the
first to have used validModesForFontPanel: so I'll try again under a
different subject line.
<snip>
Available modes are updated accordingly, but subview autoresizing
within the font panel seems faulty, because switching from #1 to #2
(partial modes to all modes) shows the typeface subview overlapping
with the reintroduced size subview.
_______________________________________________
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.