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: Matching Cocoa Window Levels in Carbon



On Nov 3, 2003, at 10:09 AM, Nick Nallick wrote:

Suppose I want to use the Cocoa spell checking window (a floating Cocoa window). Ideally the user wouldn't be able to tell that this window was any different than the other floating windows in my app. Currently, since all my Carbon windows are at level zero and the Cocoa window is greater than zero, it is above all of my floating and modal windows.

Hmm, well, I see the point, but frankly, I wouldn't worry about it. Is it costing you sales? Have your users complained about it? You probably have bigger problems to solve. However, it's your app, and your cost-benefit decision.

If I put all of my floating windows at the same level as the Cocoa window and my modal windows above it, I get more normal behavior. The only problem I've noticed is that the floating windows don't seem to know about floating windows in the other environment. If I click in the content area of a floating window it comes forward if it was behind another floating window it knows about, but if it thinks it's the front window in it's group it doesn't move. This isn't a problem if I click in the window's title bar instead of its content area.

Clicking in the titlebar calls DragWindow, which always calls SelectWindow, which always reorders the window; clicking in the content area only calls SelectWindow if the window does not appear to be frontmost. You could try adding a call to SelectWindow in response to any mouse-down.

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

References: 
 >Matching Cocoa Window Levels in Carbon (From: Nick Nallick <email@hidden>)
 >Re: Matching Cocoa Window Levels in Carbon (From: Eric Schlegel <email@hidden>)
 >Re: Matching Cocoa Window Levels in Carbon (From: Nick Nallick <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.