Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Key windows and faceless apps

Key windows and faceless apps
Thread Tools
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status: Offline
Reply With Quote
Jun 29, 2002, 09:25 AM
 
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
Reply With Quote
Jun 29, 2002, 09:58 AM
 
Try NSBGOnly = 1, but this brings its own quirks.
     
seb2  (op)
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status: Offline
Reply With Quote
Jun 29, 2002, 10:14 AM
 
</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
Reply With Quote
Jun 30, 2002, 04:11 AM
 
You should use LSBackgroundOnly or LSUIElement, I think.
     
seb2  (op)
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status: Offline
Reply With Quote
Jun 30, 2002, 09:04 AM
 
</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!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:55 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2