Hi,

My app currently needs to show a progress bar during startup (Yes, I know - I'm 
working on a better solution so this isn't going to be needed at all longer 
term). The problem I'm having is how to set this up correctly with respect to 
its active appearance. Other apps generally seem to use a normal modeless 
dialog type window with the full height title-bar with the name of the app in 
it. I do that, and also put the window into the 'modal dialog' layer (also 
tried 'status window' layer).

At first all is well, but as my app starts up and creates its first document 
window, that steals focus from the progress window which, though it remains in 
front, becomes inactive in appearance. Ideally I'd like to be able to have it 
remain having its active appearance even as the opened document also has an 
active appearance (or perhaps for the document to open inactive and become 
active when the progress bar completes and its window is hidden). Is there a 
way to do this without subclassing the window itself and forcing the active 
state using an override to the private _hasActiveControls method? For obvious 
reasons I dislike that "solution". I also tried using a utility style window 
and that does work for keeping the controls active but has the wrong title bar 
appearance.

Also, while I'm on the subject, what is the "Non-Activating" checkbox in IB for 
NSWindow for? It doesn't seem to be listed as one of the flags in the Window 
Style masks.

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to