BeginningMac OS X Tiger Dashboard Widget Development 2006 phần 1 pot

32 148 0
BeginningMac OS X Tiger Dashboard Widget Development 2006 phần 1 pot

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Access 17 1 Synchronous Usage Asynchronous Usage 17 3 17 3 Network Access WebKit and Internet Plugin Access Widget Plugin Access Java Applet Access Full Access Summary Exercises Chapter 12 : Using Plugins and Applets Plugins, Widgets, and Sharing Sharing Etiquette Why Use Plugins? Using Plugins in a Widget 17 4 17 6 17 7 17 8 17 9 18 0 18 1 18 3 18 3 18 3 18 4 18 5 Finding Plugins on Your Mac QuickTime 18 5 18 6 Incorporating... Incorporating Widget Plugins Using Java Applets Summary Exercises 18 8 19 0 19 5 19 5 Part III: Example Widgets 19 7 Chapter 13 : Easy Envelopes 19 9 Easy Envelopes The Interface Easy Envelopes Internals 19 9 19 9 203 Info.plist HTML/CSS JavaScript Functionality 203 204 206 Minimize Return Address Page Setup and Font Panels Summary 206 207 208 210 ix Contents Chapter 14 : SecureCopy Widget SSH & scp The SecureCopy Widget. .. the widget has been added (Figure 1- 4) If you want to remove a widget from Dashboard, click the Close box in the upper-left corner of the widget that you want to remove, and the widget disappears into the Close box You can close a widget without opening the widget by holding down the Option key whenever you move your cursor over it This displays the Close box for the widget Figure 1- 4 7 Chapter 1 Managing... specific to P2P and Wrox books To read the FAQs, click the FAQ link on any P2P page xvii Part I An Introduction to Widgets Chapter 1: Tiger, Dashboard, and Widgets Chapter 2: The Basics of Widgetry Chapter 3: Widget Development Environment Chapter 4: Creating a Widget Chapter 5: Debugging and Testing 1 Tiger, Dashboard, and Widgets If you have had a chance to play with Dashboard widgets, you know how... Chapter 1 Managing Dashboard s Widgets In the Tiger 10 .4.2 release, Apple introduced the Widgets widget The Widgets widget provides a compact interface for managing widgets (Figure 1- 5) You open the Widgets widget by clicking the Manage Widgets button after you have opened the Widget Bar Widgets provides you with a scrolling list of the widgets installed in your account and the System This widget allows... appear next to these widgets 8 Tiger, Dashboard, and Widgets Figure 1- 6 Clicking the More Widgets button at the bottom of the Widgets widget launches Safari, if it isn’t already running, and takes you to Apple’s Dashboard Widgets website (http://www.apple.com/downloads/ dashboard/ ) Installing Widgets So how do you get additional widgets installed? In the Tiger 10 .4.2 release, Apple changed widget installation... 265 265 266 267 268 268 270 273 Chapter 19 : More Widgets 275 More Widgets The Interface More Widgets Internals 275 275 278 Info.plist HTML/CSS JavaScript Functionality 279 280 285 Summary 289 Appendix A: Answers to Exercises 2 91 Appendix B: Additional Dashboard Programming Information 295 Appendix C: Widget Distribution 3 01 Index 305 xi Introduction Dashboard widgets are based on the technologies that... bottom of Dashboard In the Widget Bar you can see all of the widgets that are installed on your Macintosh in the root-level /Library/Widgets/ folder and your users-level /Library/Widgets/ folder The 14 widgets that ship 4 Tiger, Dashboard, and Widgets with Tiger are installed in the /Library/Widgets/ folder at the root level of your hard disk and everyone who has an account on your Macintosh can see... built-in mechanism for installing widgets Before you run through this example, you should have Apple’s Xcode development environment installed because you will use one of the example widgets supplied with it Try It Out Install a Local Widget 1 Open the /Developer/Examples /Dashboard/ Sample Widgets/ folder 9 Chapter 1 2 Double-click the Hello World widget (Hello World.wdgt) The Widget Installer prompts you... want to install the widget (Figure 1- 7) Figure 1- 7 3 Click Install Dashboard opens and prompts you to keep or delete the widget (Figure 1- 8) Figure 1- 8 4 Click Delete to remove the Widget without installing it in Dashboard, or click Keep to add it to Dashboard How It Works The Widget Installer is part of the Tiger 10 .4.2 revision and was included to address security concerns The Widget Installer prevents . Changes 10 1 Adding Preferences 10 2 Adding Preference Selection 10 2 Saving and Reading Preferences 10 8 Summary 11 1 Exercises 11 1 Chapter 7: Widget Events 11 3 The Dashboard Activation Event 11 3 Activation. 11 3 Activation Properties 11 4 System Resources 11 7 Removing Widget Preferences 11 9 Setting Widget Focus 12 3 Dragging a Widget 12 4 Control Regions 12 5 Summary 12 7 Exercises 12 7 02_778257 ftoc.qxp 6/9/06 9:29. Drop 16 1 HTML 16 2 CSS 16 3 JavaScript 16 4 Dragging Between Widgets 16 6 Summary 16 7 Exercises 16 7 Chapter 11 : Access Keys 16 9 Using Access Keys 16 9 File System Access 17 0 02_778257 ftoc.qxp 6/9/06

Ngày đăng: 08/08/2014, 21:21

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan