Mailing Lists: Apple Mailing Lists

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

Window grouping functionality in Carbon



 

Hi All,

 

I am trying to group two windows using carbon window group api's (
CreateWindowGroup, SetWindowGroup, ChangeWindowGroupAttributes, etc...
).

 

I have written a sample carbon application which has a main window
created using carbon api's, and inside the carbon application, I have
created a cocoa window using the following cocoa nswindow creation api 

 

NSWindow *cocoaWindow = [[NSWindow alloc] initwithContentRect:rect
styleMask:MyWindowStyle backing:NSBackingStoreNonRetained defer:No];

 

then I am getting WindowRef from NSWindow using the api 'WindowRef
cocoaWndRef = (WindowRef)[ cocoaWindow windowRef];'.

 

After that I am trying to group two valid windowref's (one from my
carbon application and the other from the cocoaWindow) using carbon
window grouping api's.

 

But the grouping is not working as expected. If I move the cocoa window,
only cocoa window moves, carbon window doesn't move along with cocoa
window. Only when I move the carbon window, both the window's moves.

 

Has anybody come across the situation I am facing?  Can I group two
windows created using different frameworks?

 

With the window grouping approach, do I face any focus (with mouse and
keyboard) and layering issues?

 

Could you please share your experience?

 

Thanks,

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to 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.