Re: NSTextTable/NSDrawer bug?
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