Dashboard small Control Development example under Mac (with source code)

Source: Internet
Author: User

1. BackgroundMac users should know that Mac has a good function, that is, the function of dashboard small control, press the F12 key can be free to switch. Bloggers recently on the back of the GRE word, just try to develop a back word of the dashboard small control. Effect


2. Steps
(1) Ann Dashcode
This is a development tool, which is a bit like Xcode,:https://developer.apple.com/downloads/index.action  (2) Open Dashcode, new project          Open the Asset Library at the top right, and you can drag the controls inside. Then right to add the control of the event, click event will be in the main.js to the corresponding control to add corresponding events, as to what logic needs to write their own, JS programming based on the people should be familiar with this.
(3) Development and deploymentafter development, you can click on the top left corner of the run debugging effect, feel OK, click on file-deployment, this control will appear in the dashboard of the alternative bar, F12 switch to Dashboard, click "+" button to see the widget we developed ourselves (GRE is this example in the figure).



source Download: Https://github.com/jimenbian/DashBoard_GREreference: "1" http://tech.ddvip.com/2014-03/1396270126209502.html"2" http://developer.51cto.com/art/201006/213565_3.htm

/********************************

* This article from the blog "Bo Li Garvin"

* Reprint Please indicate the source : Http://blog.csdn.net/buptgshengod

******************************************/



Dashboard small Control Development example under Mac (with source code)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.