日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Creating Your First Mac App--创建你的第一个Mac应用

發布時間:2025/4/9 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Creating Your First Mac App--创建你的第一个Mac应用 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Back to Jump Right In

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应用的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。