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: Qt & NSWorkspace bug



Have you tried this in Leopard?
Tiger had a few snags with mixing Carbon and Cocoa windows, but Leopard has improved some of the edge cases.


Ted Barram wrote:


Hi all,



I'm working on a Qt-based app that uses some Cocoa calls. I've
discovered a bug such that any call to [NSWorkspace sharedWorkspace]
results in the app getting into a state where the main app window
doesn't have focus when the app becomes the active app. In other words:



1.       Launch our app

2.       Make a different app active in the Dock

3.       Make our app active in the Dock

4.       Notice that our app's main window does not have focus (it's
still behind the last active app), but the menu bar correctly shows our
app



If I remove the call to [NSWorkspace sharedWorkspace], the bug goes
away. I can't reproduce this in a native Cocoa app, only in my Qt-based
app. Any suggestions?



Thanks,

-Ted

Shoot Anything, Share Everything with Flip Video.
http://theflip.com/store


_______________________________________________

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
_______________________________________________

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
References: 
 >Qt & NSWorkspace bug (From: "Ted Barram" <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.