• 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: Is there a glue file between Carbon and Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a glue file between Carbon and Cocoa?


  • Subject: Re: Is there a glue file between Carbon and Cocoa?
  • From: Graham Cox <email@hidden>
  • Date: Tue, 17 Apr 2012 15:34:26 +1000

On 16/04/2012, at 2:27 AM, John Wilund wrote:

> Hi,
>
> I'm porting an old MOD tracker to be build able with the current xCode and current OS X (10.7.3).
> And there is a lot of calls both for updating the screen and making the sounds in carbine.
>
> My guess is that I have to port the code from Carbone to Cocoa. But if there were a Carbone2CocoaGlue.h the lion part of the work is done..



It's not that simple.

But it is simpler.

Cocoa is built on Carbon in many cases, you can just link with Carbon framework and include Carbon.h.

The bad news is that the Carbon Sound Manager is not supported. You will have to rewrite that part of the code to use some other audio technology that is supported, which might pretty well mean getting rid of all Carbon code. As for updating the screen, I would strongly recommend not trying to port Carbon there either but instead rewrite your GUI using views and Cocoa-native controls. Carbon also has extremely limited 64-bit support, and if you're not building a 64-bit app these days, it's already obsolete.

Frankly, it looks as if porting your MOD player is going to be a world of pain. Just rewrite it.

--Graham



_______________________________________________

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Is there a glue file between Carbon and Cocoa?
      • From: John Wilund <email@hidden>
References: 
 >Is there a glue file between Carbon and Cocoa? (From: John Wilund <email@hidden>)

  • Prev by Date: Re: Fast Enumeration and temporary objects/autoreleasing
  • Next by Date: Re: Fast Enumeration and temporary objects/autoreleasing
  • Previous by thread: Is there a glue file between Carbon and Cocoa?
  • Next by thread: Re: Is there a glue file between Carbon and Cocoa?
  • Index(es):
    • Date
    • Thread