NSFontPanel problem
NSFontPanel problem
- Subject: NSFontPanel problem
- From: Alexandre <email@hidden>
- Date: Sat, 12 Jun 2004 23:46:55 -0400
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.
==
Hi
I have 2 NSTextView subclass instances in my responder chain, say #1
and 2.
When view #1 is key, I don't want the application's font panel to offer
the user the ability to resize the text. So, within my implementation
file for that class, I put:
- (unsigned int)validModesForFontPanel:(NSFontPanel *)fontPanel
{
return (NSFontPanelStandardModesMask ^ NSFontPanelSizeModeMask);
}
When view #2 is key, however, I want the font panel to support all
modes. So, within my implementation file for that class, I put:
- (unsigned int)validModesForFontPanel:(NSFontPanel *)fontPanel
{
return (NSFontPanelStandardModesMask);
}
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.
Does anyone know how to fix this?
Thanks in advance
Alex
==
Alexandre Rousseau
Vice President, International Business Development
Supervisor, Overseas Projects
Jiang Toon Animation Co. Ltd.
Email: email@hidden
Mobile: +1 514.806.2400 (North America)
Address (Canada):
3575 Boul. St-Laurent,
Montreal, QC, H2X 2T7 Canada
T: +1 514 806 2400
F: +1 514 289 8778
Address (China):
No. 9, Jiangwang Road
Jianghan Economic Development Park
Wuhan, Hubei, 430023, PRC
==
_______________________________________________
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.