NSFontPanel mode change triggers faulty update?
NSFontPanel mode change triggers faulty update?
- Subject: NSFontPanel mode change triggers faulty update?
- From: Alexandre <email@hidden>
- Date: Fri, 11 Jun 2004 12:22:03 -0400
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
_______________________________________________
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.