 |
 |
Key windows and faceless apps
|
 |
|
 |
|
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status:
Offline
|
|
hi everybody,
i'm in the process of writing a small app that sits in the background and doesn't have a dock icon (nsuielement = 1). from time to time, however, it is necessary to put up a window.
they do appear fine, but as soon as i have performed a click in a window of that app, the window loses the focus. in one window, for example, i got a table and it is only possible to click once in the table. afterwards -- as i said -- the window loses the focus and i can no longer click in the table...
any ideas?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Nov 2001
Status:
Offline
|
|
Try NSBGOnly = 1, but this brings its own quirks.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status:
Offline
|
|
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Ibson:
<strong>Try NSBGOnly = 1, but this brings its own quirks.</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">"own quirks" is a nice way to describe it. but thanks, didn't know about that.
i was thinking... how does net monitor do that? it uses nsuielement = 1, but the window still doesn't lose focus/key state after clicing into any gui elements.
one thought: net monitor's preferences used to have an empty text field in them up to a few versions ago with a note next to it saying something like "you don't have to care about this, it's just necessary" -- did that have anything to do with it?
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
You should use LSBackgroundOnly or LSUIElement, I think.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status:
Offline
|
|
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Angus_D:
<strong>You should use LSBackgroundOnly or LSUIElement, I think.</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">LSUIElement was it. thank you so much!
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|