Re: Xcode 5 & Obj-C++
Re: Xcode 5 & Obj-C++
- Subject: Re: Xcode 5 & Obj-C++
- From: Peter Teeson <email@hidden>
- Date: Thu, 30 Jan 2014 15:38:38 -0500
On 2014-01-30, at 3:23 PM, Rui Pacheco <email@hidden> wrote:
> How did you factor out the application logic from the UI rendering?
> On 30 Jan 2014, at 21:16, Jo Meder <email@hidden> wrote:
>> Hi,
>>
>> Language philosophy aside, our application is a largish cross platform (Mac, Windows, Linux) application written in C++. The UI framework uses Cocoa for the Mac back end, which means we're using Objective-C++ to interface with Cocoa. I've recently, at long last, been able to upgrade from Xcode 3 to Xcode 5. I had to make very few changes to the Objective-C++ code to get it to work. In fact it was so minor I've forgotten what it was exactly, something to do with the way I was making forward declarations of some Objective-C objects in headers that were shared by C++ and Objective-C++ code IIRC. Anyway, it wasn't any big drama. All my work was based on the various Objective-C++ resources available in late 2010, which was when I ported the UI framework to Cocoa from Carbon. There are some newer language features such as ARC which I'm not using, so I don't know what effect that might have. Essentially though, Xcode 5 and Objective-C++ are no problem.
>>
>> Regards,
>>
>> Jo Meder
I don't know how Jo did it but in my case the model will (most likely need to) be C++ and the
UI (which is merely for interim progress reporting and debugging) will be Obj-C, mainly Cocoa.
The main process does not need a GUI.
Last time I seriously used Obj-C++ was back in the Xcode 3 days so just wanted to find out what has changed.
Jo's answer is most comforting.
Peter
_______________________________________________
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