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: Calling Cocoa UI from Carbonized Plug-in



On Tuesday, July 31, 2001, at 08:55 AM, Richard Collyer wrote:

Guru's out there,

I am working with a large Carbonized application which supports a plug-in architecture. Getting the plug-ins to carbon has not been too hard. However, I REALLY like the Cocoa framework and using it to deal with the UI.

So my question is, how do I call a Cocoa UI code (library, segment, ???) from a Carbonized plug-in (does not use CFPlugin). I want the windowing and event handeling of a Cocoa Application, but I don't need the menu.

I think you're unlikely to make that work. Carbon and Cocoa both like to run their own event loop, and it's difficult to mix them. If your host app is Carbonized, I'd stick with Carbon for your UI.

-eric


References: 
 >Calling Cocoa UI from Carbonized Plug-in (From: Richard Collyer <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.