FROM : Ken Tozier
DATE : Mon Apr 11 20:31:38 2005
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_removed>
>
>> ------------------------------
>>
>> Message: 7
>> Date: Mon, 11 Apr 2005 11:54:31 -0400
>> From: Ken Tozier <<email_removed>>
>> Subject: Launched window not activating
>> To: <email_removed>
>> Message-ID: <<email_removed>>
>> 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
>
DATE : Mon Apr 11 20:31:38 2005
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_removed>
>
>> ------------------------------
>>
>> Message: 7
>> Date: Mon, 11 Apr 2005 11:54:31 -0400
>> From: Ken Tozier <<email_removed>>
>> Subject: Launched window not activating
>> To: <email_removed>
>> Message-ID: <<email_removed>>
>> 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
>
| Related mails | Author | Date |
|---|---|---|
| Ken Tozier | Apr 11, 17:54 | |
| Lorenzo | Apr 11, 19:03 | |
| Ken Tozier | Apr 11, 20:31 | |
| j o a r | Apr 11, 20:59 | |
| Ken Tozier | Apr 11, 21:59 | |
| Ken Tozier | Apr 12, 03:51 | |
| Charilaos Skiadas | Apr 12, 04:13 | |
| Ken Tozier | Apr 12, 06:32 | |
| Charilaos Skiadas | Apr 12, 07:06 | |
| Ken Tozier | Apr 12, 07:35 | |
| Hamish Allan | Apr 12, 13:52 |






Cocoa mail archive

