Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to make a window remain on the foreground?



Linea Tessile Srl:

We are using several tables in our application.
These tables are opened from a first window(1), by clicking on a button. The table then opens in a second window(2), which appears on the foreground.
When the user then clicks on the window(1) again, the window(2) goes in background. How can we make the window(2) remain in the foreground, even when the window(1) is clicked?

Firstly, are you sure you really, really want to do this? Displaying document content in a floating window is a gross violation of the HIG.

Secondly, this really ought to be directed to cocoa-dev or carbon-dev, as appropriate. However: in Cocoa, make your window an NSPanel and make it a Utility Window[1] (this can be done in InterfaceBuilder). In Carbon, you can create a window of kFloatingWindowClass, or place the window in the floating window group manually (GetWindowGroupOfClass(kFloatingWindowClass)). It is technically possible to use the latter method on a Cocoa window (using [-NSWindow windowRef]), but this may well confuse Cocoa.


[1] Apple has used "Utility Window" a tad inconsistently over the years. In this case, it means a window that floats over other windows of the same application.

--
Jens Ayton
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >how to make a window remain on the foreground? (From: Linea Tessile Srl <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.