• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Limitations on Carbon plugins in Cocoa app? (was Re: [LONG] Making the right choice)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Limitations on Carbon plugins in Cocoa app? (was Re: [LONG] Making the right choice) (From: David Niemeijer <email@hidden>)

  • Prev by Date: Re: Changing the "on" color of an NSButton
  • Next by Date: Re: Changing the "on" color of an NSButton
  • Previous by thread: Re: Limitations on Carbon plugins in Cocoa app? (was Re: [LONG] Making the right choice)
  • Next by thread: Re: [LONG] Making the right choice (was Re: How viable is Cocoa development?)
  • Index(es):
    • Date
    • Thread