• 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
NSFontPanel mode change triggers faulty update?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: POST request without NSURLConnection
  • Next by Date: Re: POST request without NSURLConnection
  • Previous by thread: NSColorPanel, and de-registering objects from them
  • Next by thread: KVO for Java
  • Index(es):
    • Date
    • Thread