Window grouping functionality in Carbon
Window grouping functionality in Carbon
- Subject: Window grouping functionality in Carbon
- From: "Rangaswamy C T" <email@hidden>
- Date: Wed, 13 Feb 2008 19:12:31 +0530
- Thread-topic: 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:
This email sent to email@hidden