17 apr 2012 kl. 07:34 skrev Graham Cox:

> 
> 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

It might just end with that.... :(
Sound is an important thing with MOD players/Trackers!

The code is mainly written in C++. Do you believe I should learn  C++ and Cocoa 
with/on Objective C before I start?

It will be fun, but take some time... I think I¨ll start reading Aarnn 
Hilegass:s book on Cocoa programming. May be you can tell me if there are any 
other book on Cocoa Programming.

/John
 
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to