Creating Your First Mac App--创建你的第一个Mac应用
About Creating Your First Mac App
關于創建你的第一個Mac 應用
Your First Mac App?introduces you to the Three Ts of Mac app development:
Your First Mac App 介紹了Mac 應用開發的3個T:
-
Tools. How to use Xcode to create and manage a project
工具 -- 如何用Xcode創建和管理一個工程
-
Technologies. How to create an app that responds to user input
技術 -- 如何創建一個能對用戶輸入產生反應的應用
-
Techniques. How to take advantage of some of the fundamental design patterns that underlie all Mac app development
技巧 --?如何利用所有Mac應用程序開發背后的一些基本的設計模式
You will create an app with a set of controls you can use to set the volume of an audio track. In this app, there is just one audio track but you can imagine an app that independently controls the volume of multiple audio tracks. After you complete all the steps in this tutorial, you’ll have an app that looks something like this:
你將創建一個應用,該應用有一組控件用來設置音軌的音量。在這個應用里只有一個音軌,但是你能想象一個應用,能獨立控制多個音軌的d音量。當你完成本教程的學習,你將有一個看起來像這樣的應用:
As you can see above, there are three main user interface (UI) elements in the app that you create:
正如你在上面看到的那樣,你將創建的應用有3個主要用戶界面(UI)元素:
-
A text field (that allows the user to enter a numeric volume)
一個文本框(允許用戶輸入數字音量)
-
A slider (that allows the user to graphically select a volume)
一個滑動條(允許用戶滑動改變音量)
-
A button, titled Mute (which sets the track’s volume to zero)
一個按鈕,標題為"mute"(設置靜音)
When you run the finished app, you enter a numeric volume in the text field and the slider updates accordingly. As you move the slider, the text field displays the current volume. When you click the Mute button, the volume is set to zero.
當你運行完應用程序,在文本框里輸入一個數字音量,滑動條(slider)會根據這個數字更新音量。當你拖動滑動條滑塊時,文本框里顯示的時當前音量。當你點擊Mute按鈕, 音量變為0。
To benefit from this tutorial, it helps to have some familiarity with the basics of computer programming in general and with object-oriented programming and the Objective-C language in particular. If you haven’t used Objective-C before, don’t worry if the code in this tutorial is hard to understand. When you finish?Start Developing Mac Apps Today, you’ll understand the code much better.
該教程讓你對一般計算機編程的基礎知識有一定的了解,特別是對 面向對象編程和Objective-C語言。 如果你以前沒有用過 Objective-C,如果教程里的代碼對你來說有點困難也別擔心。 當你完成 Start Developing Mac Apps Today 進度表之后,你將能很好的理解這些代碼。
Next?
轉載于:https://www.cnblogs.com/patientAndPersist/archive/2013/05/29/3106041.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的Creating Your First Mac App--创建你的第一个Mac应用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 数据库集群
- 下一篇: MongoDB 2.5 版本将提供新的查