• 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: NSTextTable/NSDrawer bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextTable/NSDrawer bug?


  • Subject: Re: NSTextTable/NSDrawer bug?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 17 Jun 2005 15:00:41 -0700


On Jun 10, 2005, at 1:27 PM, Jeremy Dronfield wrote:

I've found that it's impossible to insert a text table into an NSTextView using -[NSTextView orderFrontTablePanel:] if the text view is in a drawer. The table panel opens, but its controls are disabled and no table is inserted. This definitely isn't a bug in my code - I've reproduced it with a test app. Is this a known AppKit bug, and if so, does anyone have a workaround?



This is an AppKit bug.  It is fixed internally.  Here is something you could try:  use an NSTextView subclass, and override the -updateRuler, -updateFontPanel, and -window methods.  Set a flag on entry to -updateRuler or -updateFontPanel, call the super method, then reset the flag on exit.  While the flag is set, have the -window method return the drawer's parent window; otherwise have it return [super window].

Douglas Davidson

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTextTable/NSDrawer bug?
      • From: Jeremy Dronfield <email@hidden>
References: 
 >NSTextTable/NSDrawer bug? (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Closing all windows when closing one of them
  • Next by Date: Re: Closing all windows when closing one of them
  • Previous by thread: NSTextTable/NSDrawer bug?
  • Next by thread: Re: NSTextTable/NSDrawer bug?
  • Index(es):
    • Date
    • Thread