[Solved] Re: What could cause toolbar validation to stop?
[Solved] Re: What could cause toolbar validation to stop?
- Subject: [Solved] Re: What could cause toolbar validation to stop?
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 25 Apr 2003 13:42:28 -0700
On Thursday, April 24, 2003, at 09:23 PM, Nick Zitzmann wrote:
Both also have validateToolbarItem: methods to turn things on and off.
The document window toolbars work flawlessly, but for some reason I
can't figure out, when the application receives a high level event
(e.g. drag and drop, or Apple events), the application stops calling
validateToolbarItem: for the global window. So eventually it gets
stuck with a toolbar where either everything is on, or the toolbar is
stuck in the state it was in before the event was received.
After I posted that, I solved the problem...
For the purpose of the archives, here's the solution: Never call
-makeKeyAndOrderFront: on an NSWindow object from any thread other than
thread 1. This screws up toolbar validation and probably leads to other
problems as well...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
"Building the future and keeping the past alive are one and the same
thing." - Metal Gear Solid 2
_______________________________________________
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.