A RubyMotion OS X app that uses the "top" command to show your CPU usage in your menu bar. It can show user CPU usage, system CPU usage, or total CPU usage. It's built to demonstrate how to make a menu bar app on OS X that runs a background process to fetch and display data.
For the accompanying tutorial, see: http://kickcode.com/blog/2013/11/07/rubymotion-background-process-in-status-bar-app.html
- RubyMotion 2.0+
- git clone https://github.com/kickcode/CPUTrackerMenu.git && cd CPUTrackerMenu
- Elliott Draper
Copyright 2013 Elliott Draper email@example.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.