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)