• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabling FontPanel UI elements that we don't support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 11:09:46 -0800

On 30 Jan, 2004, at 2:52 PM, Brooks Bell wrote:

Our app requires a cross-platform group of text attributes. I'd like to use
the NSFontPanel for the UI but then there will be UI for manipulating things
that we ignore (like fancy drop shadows).

Is there any way to disable UI elements in the font panel? This seems to
be a problem in some other apps as well.

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.

  • Follow-Ups:
    • Re: Disabling FontPanel UI elements that we don't support
      • From: Brooks Bell <email@hidden>
    • Re: Disabling FontPanel UI elements that we don't support
      • From: Jim Correia <email@hidden>
References: 
 >Disabling FontPanel UI elements that we don't support (From: Brooks Bell <email@hidden>)

  • Prev by Date: Cocoa/Windows parallel dvlpmt
  • Next by Date: I need assistance from experienced programmer.
  • Previous by thread: Disabling FontPanel UI elements that we don't support
  • Next by thread: Re: Disabling FontPanel UI elements that we don't support
  • Index(es):
    • Date
    • Thread