• 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: Java or C++ for cross-platform Cocoa/.NET?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java or C++ for cross-platform Cocoa/.NET?


  • Subject: Re: Java or C++ for cross-platform Cocoa/.NET?
  • From: Fredrik Olsson <email@hidden>
  • Date: Tue, 15 Jun 2004 07:45:22 +0200

I sort of did this for an assignment at University. Using C++ for the model/logic, and wrapping it up in Borland C++ Builder for the Windows application and Cocoa for the Mac OS X application.

There was no real problem at all with this small application. Did a sloc count on the code though and the Win-specific code ended up a bit over 1000, and the Cocoa parts around 85 I think. And they do the same thing (Cocoa lack printing :/).

Full source (including an embryo for a CLI app) here: http://aio.nocrew.org/assignments/systems_engineering/ divemanager.tar.gz

/Fredrik Olsson

2004-06-09 kl. 17.05 skrev Eric Czarny:

It's also possible to write the model code in C or C++ then, for each platform, writing the GUI code/system specific code in what ever method seems fit. For Cocoa it would be as simple as wrapping the C or C++ code in Objective-C... I don't know the specifics for Windows development, but I imagine it wouldn't be more difficult than wrapping the model code in C++.

I haven't tried this, but I believe it shouldn't be impossible. Just an idea.

Cheers,
Eric Czarny
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Java or C++ for cross-platform Cocoa/.NET? (From: Eric Czarny <email@hidden>)

  • Prev by Date: Re: Image Alignment In Scrolled View?
  • Next by Date: Re: window resize problem (NSMinX(windowFrame), NSMaxY(windowFrame)
  • Previous by thread: Re: Java or C++ for cross-platform Cocoa/.NET?
  • Next by thread: GUI without IB
  • Index(es):
    • Date
    • Thread