|
#1
| |||
| |||
| Coming from the Linux/Windows World Hi all, I just wanted to ask what are my available options writing native mac os x application? I do not want to learn Obj-C nor I want to write programs in C. I'm looking for using my C++/C# skills. Any suggestions are welcomed. Kind regards, gamehack |
|
#2
| ||||
| ||||
| Forget C#. It isn't really usable on OS X since Mono is way way way behind on OS X compared to Linux. Stick with C++ and your options are Qt, wxWidgets or Carbon. I'd personally recommend Qt because it's portable, and applications look kinda native. wxWidgets applications look even better, but the toolkit itself isn't as well documented as Qt. Or you could learn Objective-C. It's quite a nice language, once you get used to it. |
|
#3
| ||||
| ||||
| C++ is fine for Mac OS X development. You'll need a copy of XCode 1.5, which includes everything you need to write, compile, and create an interface for any project you want. It's available for free either by downloading it from Apple's Developer website, or from the CD that comes with retail versions of Mac OS X.
__________________ Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k http://www.jeffhoppe.com |
|
#4
| |||
| |||
| Straight C++ for Mac development means you will be doing "legacy" Carbon coding. Personally, this isn't what you want to do if you'll be investing time creating software for Mac OS X. Objective-C is what you do want to learn. Objective-C is a superset of C, however Xcode allows you to develop in Objective-C++, so all that C++ code you have is usable in your Cocoa program. I'd suggest you do learn Objective-C for the UI interaction, but for your logic stick with C++ if that's what you know best. Mac OS 10.3 makes UI easy with bindings which requires no code at all. Just some connections in Interface Builder and you have a program! ![]() |
|
#5
| |||
| |||
| Oh, and if you know C# well, then you could learn Cocoa-Java easily, and make native Cocoa apps using Java. Just a thought... |
|
#6
| |||
| |||
| Thanks a lot for the replies. I've some other questions though So can I use C++ with Carbon or Cocoa? From what I understand Cocoa is like an abstraction on top of Carbon, which itself is written in C(Obj-C?). Does Apple provide C++ bindings for either Carbon or Cocoa?Thanks a lot |
|
#7
| ||||
| ||||
| No, Cocoa and Carbon are separate. Carbon is for legacy apps, and is a C based API very similar to Win32. In fact, there is nearly a one to one mapping between function calls as Win32 and Carbon are so similar. That's been my experience anyway, for my little exploits into carbon. Apple doesn't provide C++ bindings for either Carbon or Cocoa. There are C++ bindings for Carbon. Qt and wxWidgets use Carbon to render all widgets, so if you use these toolkits, your resulting application will behave just like a carbon app. For Cocoa, at the moment only wxWidgets has a Cocoa backend, and it looks quite nice! The benefit of both wxWidgets and Qt is that your programs are going to be highly portable. I personally suggest you try one of these. |
|
#8
| |||
| |||
| Is there a difference between the visual appearance between Carbon and Cocoa applications? And are there XML etc libraries so I can use them straight away? Thanks |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Second Coming of Apple | King Shrek | Apple News, Rumors & Discussion | 0 | December 21st, 2004 10:50 PM |
| World Book 2003 Crashing | Yogi Bear | Mac OS X System & Mac Software | 1 | October 27th, 2004 08:43 AM |
| safari & runners world | cfleck | Mac OS X System & Mac Software | 16 | August 14th, 2004 01:24 PM |
| Appleworks 7 coming? | hmurchison | Apple News, Rumors & Discussion | 27 | August 13th, 2004 01:34 PM |
| How do I install World Book that came with my eMac? | themacko | Mac OS X System & Mac Software | 2 | September 5th, 2002 09:39 PM |