NSFontPanelValidation broken?
NSFontPanelValidation broken?
- Subject: NSFontPanelValidation broken?
- From: David Reitter <email@hidden>
- Date: Thu, 11 Jun 2009 23:20:19 -0400
Why does the following not have the desired effect?
- (unsigned int) validModesForFontPanel:(NSFontPanel *)fontPanel
{
/* This doesn't work as intended. Why? Bug? */
return (NSFontPanelFaceModeMask |
NSFontPanelSizeModeMask |
NSFontPanelCollectionModeMask |
NSFontPanelTextColorEffectModeMask |
NSFontPanelDocumentColorEffectModeMask);
}
I can't seem to show the color buttons explicitly, and removing, for
instance, NSFontPanelStrikethroughEffectModeMask or
NSFontPanelUnderlineEffectModeMask simply doesn't work right (usually,
an underline popup is shown in the panel, but the text color effect
button is hidden).
Is NSFontPanel simply buggy even in 10.5, or am I missing something
here?
This works as designed:
return NSFontPanelAllModesMask - NSFontPanelShadowEffectModeMask;
but of course that's not really what I want to do.
PS.: please cc me in replies.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden