What's the best resource to learn how to write

2020-02-26 00:26发布

I'd like to learn how to write application for Mac OS X.

Like how to use XCode properly, Cocoa syntaxes and examples, etc.

I'm already a web developer using ruby, php, mysql, rails, etc.

I looked through google quite some times but never found something palpable to learn from.

But I really want to make my own application, for fun and maybe business later.

Thanks a whole bunch for your tips!

8条回答
够拽才男人
2楼-- · 2020-02-26 00:36

I was in the same situation some time ago, struggling to learn mac dev, read a lot of books, and it was hard for me to retain all that information, but I stumbled across CocoaCast where you can find lots of video tutorials on Mac Development! And it's totally free to watch them, even to download them.

查看更多
太酷不给撩
3楼-- · 2020-02-26 00:38

I would start with the currency converter sample Apple provides.
This gives a nice introduction to Xcode and Interface Builder.
You could then try to implement the same basic application but with bindings.

As you seem to have experience in some interpreted languages, you may have troubles with the memory management in Objective-C at the beginning.
You can turn on Garbage Collection to make your life easier.
If you want to use your knowledge to create iPhone apps, you should learn the memory management concepts as there is no garbage collector available on the phone.

The podcasts on the Mac Developer Network also contain some good information.

查看更多
时光不老,我们不散
4楼-- · 2020-02-26 00:38

Stanford recently put out a course on iTunes U that teaches you how to program on the iPhone. Because the iPhone uses the same programming language as OSX, a lot of what they talk about can be transferred to Mac app development. Best of all, the course is free to download and watch, and has a bunch of sample material that goes along with it. Click the link below to open it in iTunes.

iPhone Application Programming

查看更多
霸刀☆藐视天下
5楼-- · 2020-02-26 00:42

You should start by learning Objective-C. Programming in Objective-C is an excellencent introduction to the language

If you're looking for a free resource this is an excellent web-site

Only after you have a solid understanding of the language would I worry about the different frameworks available.

查看更多
神经病院院长
6楼-- · 2020-02-26 00:43

To jump right in as quickly as possible, I'd recommend going through the following Cocoa Dev Central tutorials:

  1. http://cocoadevcentral.com/articles/000081.php (C)
  2. http://cocoadevcentral.com/d/learn_objectivec/ (Obj-C)
  3. http://cocoadevcentral.com/d/learn_cocoa/ (Cocoa part 1)
  4. http://cocoadevcentral.com/d/learn_cocoa_two/ (Cocoa part 2)
  5. http://cocoadevcentral.com/articles/000082.php (Style part 1)
  6. http://cocoadevcentral.com/articles/000083.php (Style part 2)

Once you've read those, you should be able to do quite a bit on your own, just using the documentation in Xcode (option-double-click on a class name in Xcode) and Apple's developer site.

查看更多
混吃等死
7楼-- · 2020-02-26 00:44

Check out Apple's Developer Documentation, which seems to be getting more and more attention over time, and has become quite good for beginners to start with.

查看更多
登录 后发表回答