Re: Disabling FontPanel UI elements that we don't support
Re: Disabling FontPanel UI elements that we don't support
- Subject: Re: Disabling FontPanel UI elements that we don't support
- From: Dustin Voss <email@hidden>
- Date: Sat, 31 Jan 2004 21:09:47 -0800
On 31 Jan, 2004, at 4:49 PM, Brooks Bell wrote:
Where are these release notes? My copy of
file:///Developer/Documentation/ReleaseNotes/AppKit.html
doesn't include them.
I found them at
file:///Developer/Documentation/ReleaseNotes/Cocoa/AppKit.html, near
the bottom.
I did find a reference here:
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC
_classic/Protocols/NSFontPanelValidation.html#//apple_ref/doc/uid/
20002040/B
AJEGEFE
The reference list only the constants you mention below. Sadly these
are
the ones we support (picking a font, size, and face). The ones we
don't
support are the ones in the Effects pane (turn it on and off with the
"gear"
menu).
What is weird is that the preview pane of the FontPanel doesn't appear
to
support these either. Sad.
Hmm. Those are the only ones listed in NSFontPanel.h, as well. The
ellipses in the release notes gave the impression of more.
Well, you could always try 1 << 3, etc. Maybe they work, but are
undocumented. If so, let me know.
On 1/31/04 11:09 AM, "Dustin Voss" <email@hidden> wrote:
See the AppKit release notes for NSFontPanel:
----------------------------
Font Panel now has the ability to hide elements that are not
applicable
by having the target respond to a method validating the font panel
modes. The following mode masks are defined:
enum {
NSFontPanelFaceModeMask = 1 << 0,
NSFontPanelSizeModeMask = 1 << 1,
NSFontPanelCollectionModeMask = 1 << 2,
...
NSFontPanelStandardModesMask = 0xFFFF, // standard modes, including
those added in the future but expected to work by default
NSFontPanelAllModesMask = 0xFFFFFFFF // all modes, including some
added in the future but are not enabled by default
};
If the target wants anything other than the standard mode mask, it
must
respond to this method.
- (unsigned int)validModesForFontPanel:(NSFontPanel *)fontPanel;
-----------------------------
_______________________________________________
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.