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



Is there a specific problem that you're trying to solve by doing this?

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. You see the same thing with the font panel windows (i.e., Cocoa windows with a Carbon API). I'm also trying to figure out if it's reasonable to drop the Carbon color picker and use the Cocoa version directly.

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.

Nick
_______________________________________________
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>)



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.