Re: Launched window not activating
Re: Launched window not activating
- Subject: Re: Launched window not activating
- From: Ken Tozier <email@hidden>
- Date: Mon, 11 Apr 2005 14:31:38 -0400
Thanks Lorenzo. Threading did the trick!
I'm a little confused as to why threading is necessary though. Is it always required to open nib files other than the main nib inside their own thread? If not, why was it necessary for this instance. I'm not doing anything fancy inside my code, just opening a window with [NSWindowController initWithWindowNibName:@"nibName" owner: self];
Do you know if there is any documentation that spells out these types of hidden gotchas?
Thanks again
Ken
On Apr 11, 2005, at 1:03 PM, Lorenzo wrote:
Probably, the current task doesn't allow that window becomes key.
Maybe you have to open that window in a thread. Or launch your
register-class in a thread.
Did you try to use a window placed in the MainMenu.nib file? If the result
is the same, most likely the problem is not caused by the new nib file but
by the current task.
Best Regards
--
Lorenzo
email: email@hidden
------------------------------
Message: 7
Date: Mon, 11 Apr 2005 11:54:31 -0400
From: Ken Tozier <email@hidden>
Subject: Launched window not activating
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Sorry if this is an obvious one.
I wrote a class that registers for camera connected events and launches
a window in a secondary nib file to give the user feedback on the
download progress. The window is created when a connected event is
detected and destroyed when the download is complete. The problem I'm
having is that it never becomes active and none of NSWindow's ordering
commands (makeKeyAndOrderFront etc) seems to have any effect. Even
clicking on the window doesn't make it frontmost.
I've tried various combination of attribute checkboxes in the IB info
panel but nothing seems to have any effect.
Anyone have an idea why this is happening and how to fix it?
Thanks
Ken
_______________________________________________
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