Re: Limitations on Carbon plugins in Cocoa app? (was Re: [LONG] Making the right choice)
Re: Limitations on Carbon plugins in Cocoa app? (was Re: [LONG] Making the right choice)
- Subject: Re: Limitations on Carbon plugins in Cocoa app? (was Re: [LONG] Making the right choice)
- From: Kurt Revis <email@hidden>
- Date: Sun, 27 Jan 2002 22:56:19 -0800
On Sunday, January 27, 2002, at 12:48 PM, David Niemeijer wrote:
So, do I understand correctly that a Cocoa application that works with
plugins would require these to be Cocoa as soon as they need to do any
UI stuff such as put up a dialog requesting some user input or drawing
to their own (or my Cocoa window?).
There are ways to let Carbon draw in a Cocoa environment. For example,
NSQuickDrawView is a Cocoa view which provides a Carbon QuickDraw port
to draw into -- you could deal with the view in Cocoa normally, and pass
the port down to Carbon code to let it draw.
Also, it appears that at least some Carbon UI will work in Cocoa. For
instance, I just created a Cocoa app that calls the Carbon
StandardAlert() function to bring up a dialog box, and it appears to
work fine. I suspect that more intricate or newer Carbon UI may not work
quite so easily, but I don't honestly have a lot of experience in this
area. (I quit doing old MacOS programming well before Carbon existed,
and I really haven't kept up with developments in that area.)
--
Kurt Revis
email@hidden