学习如何为 Mac OS X 编写应用程序的最佳资源是什么?

发布于 2024-08-03 02:23:43 字数 213 浏览 9 评论 0原文

我想学习如何为 Mac OS X 编写应用程序。

例如如何正确使用 XCode、Cocoa 语法和示例等。

我已经是使用 ruby​​、php、mysql、rails 等的 Web 开发人员。

我浏览过谷歌了很多次,但从未找到明显可以学习的东西。

但我真的很想制作自己的应用程序,为了好玩,也许以后还可以做生意。

非常感谢您的提示!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

月寒剑心 2024-08-10 02:23:43

Aaron Hillegass 的书 “Mac OS X 的 Cocoa 编程” 肯定就在那里。花时间学好 C 语言也是非常值得的。

Aaron Hillegass's book "Cocoa Programming for Mac OS X" is certainly up there. It would also be well worth your time to learn the C language well.

£烟消云散 2024-08-10 02:23:43

为了尽快入门,我建议您阅读以下 Cocoa Dev Central 教程:

  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 第 1 部分)
  4. http://cocoadevcentral.com/d/learn_cocoa_two/(Cocoa 部分2)
  5. http://cocoadevcentral.com/articles/000082.php (样式第 1 部分)
  6. < a href="http://cocoadevcentral.com/articles/000083.php" rel="noreferrer">http://cocoadevcentral.com/articles/000083.php (样式第 2 部分)

一旦您阅读这些内容后,您应该能够自己完成很多工作,只需使用 Xcode 中的文档(选项并双击 Xcode 中的类名)和 Apple 的开发人员站点即可。

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.

拥抱我好吗 2024-08-10 02:23:43

你应该从学习 Objective-C 开始。 《Objective-C 编程》 是对这门语言的精彩介绍,

如果您正在寻找免费资源,这是一个很棒的 网站

只有在您对语言有充分的了解之后我才会担心关于可用的不同框架。

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.

治碍 2024-08-10 02:23:43

我首先要开始的是Automator。事实上,这就是我确实开始的地方。用它解决一些简单的问题,例如重命名 iTunes 歌曲或照片处理。在此过程中,您可能会想到一个您想要但未包含的操作。您可以使用 AppleScript 自行编写。

现在,您只需大约一天的时间即可掌握两种适用于 MacOS 的桌面编程系统的基础知识。学习这两个超级基础的系统可能看起来很愚蠢,但在这个过程中,您将了解桌面开发的流程,并在继续使用 XCode 之前获得一些“快速胜利”。您将开始认为您的 Mac 不仅仅是一个网络客户端。

如果我是您,接下来我会查看 RubyCocoa。这是一种您已经熟悉的语言,因此您也可以在这里赢得另外几场胜利。

当您准备好学习 Objective-C 时,Cocoa Is My Girlfriend 是一个很好的入门资源。

The first thing I would start with is Automator. In fact, it's what I did start with. Solve a couple of easy problems with it, like renaming iTunes songs or photo manipulation. In the process, you'll probably think of an action you want that's not included. You can write it yourself using AppleScript.

Now you've got the basics of two desktop programming systems for MacOS in about a day. It might seem silly to learn these two super-basic systems, but in the process you'll learn the flow of desktop development and get a couple of "quick wins" in before you move on to XCode. You'll begin to think of your Mac as more than just a web client.

If I were you, I'd check out RubyCocoa next. It's a language you're already familiar with, so you'll be able to score another couple of wins here, too.

When you're ready to take on Objective-C, Cocoa Is My Girlfriend is a great introductory resource.

捶死心动 2024-08-10 02:23:43

我将从 货币转换器示例 Apple 提供。
这很好地介绍了 Xcode 和 Interface Builder。
然后,您可以尝试实现相同的 基本应用程序,但具有绑定

由于您似乎有一些解释性语言的经验,所以一开始您可能会对 Objective-C 中的内存管理遇到麻烦。
您可以打开垃圾收集,让您的生活更轻松。
如果您想利用您的知识来创建 iPhone 应用程序,您应该学习内存管理概念,因为手机上没有可用的垃圾收集器。

Mac 开发者网络 上的播客也包含一些不错的信息。

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.

遥远的她 2024-08-10 02:23:43

前段时间我也遇到过同样的情况,努力学习 mac dev,读了很多书,我很难记住所有这些信息,但我偶然发现了 CocoaCast 在这里您可以找到大量有关 Mac 开发的视频教程!而且观看甚至下载都是完全免费的。

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.

儭儭莪哋寶赑 2024-08-10 02:23:43

斯坦福大学最近在 iTunes U 上推出了一门课程,教你如何在 iPhone 上编程。因为iPhone使用与OSX相同的编程语言,所以他们谈论的很多内容都可以转移到Mac应用程序开发上。最重要的是,该课程可以免费下载和观看,并且附带大量示例材料。单击下面的链接以在 iTunes 中打开它。

iPhone 应用程序编程

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

病女 2024-08-10 02:23:43

查看 Apple 的开发者文档,随着时间的推移,它似乎越来越受到关注,并且对于初学者来说已经变得非常好。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文