|
|
A very simple test
Posted this last time the topic came up, but people seem to have no memories around here... :-)
Hold down the mouse button in a dialog box or window with a default (blue, pulsating) button. If the button stops animating, then it's Carbon, otherwise it's Cocoa.
A very simple test
This is sadly right in every app I've tried. It's also true if you press the help key in Cocoa apps, the cursor changes to a question mark. If you can click an immediately drag text, it's a Carbon Application. If you have to click, hold, wait, then drag, it's a Cocoa application. If you can immediately drag a proxy icon, it's Cocoa and if not, it's Carbon (the opposite of text dragging)
When I say Cocoa and Carbon application, I mean the main event loop is NSRunApplication (the cocoa event loop) or WaitNextEvent or RunApplicationEventLoop for Carbon. In the future applications may be able to mix these, in that case, you could probably only tell if a single window is carbon or cocoa.
A very simple test
Unfortunately, it's even worse than that. You can hold down the mouse on virtually any UI element anywhere in the operating system and the Aqua default button will stop pulsating in Carbon apps. Single-threaded crap or what!? :-) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.17 seconds |
|