Creating Your First Mac App--创建你的第一个Mac应用
About Creating Your First Mac App
關(guān)于創(chuàng)建你的第一個(gè)Mac 應(yīng)用
Your First Mac App?introduces you to the Three Ts of Mac app development:
Your First Mac App 介紹了Mac 應(yīng)用開(kāi)發(fā)的3個(gè)T:
-
Tools. How to use Xcode to create and manage a project
工具 -- 如何用Xcode創(chuàng)建和管理一個(gè)工程
-
Technologies. How to create an app that responds to user input
技術(shù) -- 如何創(chuàng)建一個(gè)能對(duì)用戶輸入產(chǎn)生反應(yīng)的應(yīng)用
-
Techniques. How to take advantage of some of the fundamental design patterns that underlie all Mac app development
技巧 --?如何利用所有Mac應(yīng)用程序開(kāi)發(fā)背后的一些基本的設(shè)計(jì)模式
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:
你將創(chuàng)建一個(gè)應(yīng)用,該應(yīng)用有一組控件用來(lái)設(shè)置音軌的音量。在這個(gè)應(yīng)用里只有一個(gè)音軌,但是你能想象一個(gè)應(yīng)用,能獨(dú)立控制多個(gè)音軌的d音量。當(dāng)你完成本教程的學(xué)習(xí),你將有一個(gè)看起來(lái)像這樣的應(yīng)用:
As you can see above, there are three main user interface (UI) elements in the app that you create:
正如你在上面看到的那樣,你將創(chuàng)建的應(yīng)用有3個(gè)主要用戶界面(UI)元素:
-
A text field (that allows the user to enter a numeric volume)
一個(gè)文本框(允許用戶輸入數(shù)字音量)
-
A slider (that allows the user to graphically select a volume)
一個(gè)滑動(dòng)條(允許用戶滑動(dòng)改變音量)
-
A button, titled Mute (which sets the track’s volume to zero)
一個(gè)按鈕,標(biāo)題為"mute"(設(shè)置靜音)
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.
當(dāng)你運(yùn)行完應(yīng)用程序,在文本框里輸入一個(gè)數(shù)字音量,滑動(dòng)條(slider)會(huì)根據(jù)這個(gè)數(shù)字更新音量。當(dāng)你拖動(dòng)滑動(dòng)條滑塊時(shí),文本框里顯示的時(shí)當(dāng)前音量。當(dāng)你點(diǎn)擊Mute按鈕, 音量變?yōu)?。
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.
該教程讓你對(duì)一般計(jì)算機(jī)編程的基礎(chǔ)知識(shí)有一定的了解,特別是對(duì) 面向?qū)ο缶幊毯蚈bjective-C語(yǔ)言。 如果你以前沒(méi)有用過(guò) Objective-C,如果教程里的代碼對(duì)你來(lái)說(shuō)有點(diǎn)困難也別擔(dān)心。 當(dāng)你完成 Start Developing Mac Apps Today 進(jìn)度表之后,你將能很好的理解這些代碼。
Next?
轉(zhuǎn)載于:https://www.cnblogs.com/patientAndPersist/archive/2013/05/29/3106041.html
《新程序員》:云原生和全面數(shù)字化實(shí)踐50位技術(shù)專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
以上是生活随笔為你收集整理的Creating Your First Mac App--创建你的第一个Mac应用的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 数据库集群
- 下一篇: MongoDB 2.5 版本将提供新的查