Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zfdang/chinese-lunar-calendar-for-mac
Chinese Lunar Calendar for Mac
https://github.com/zfdang/chinese-lunar-calendar-for-mac
bar calendar chinese icons lunar mac macbook menu menubar objective-c osx status statusbar
Last synced: 15 days ago
JSON representation
Chinese Lunar Calendar for Mac
- Host: GitHub
- URL: https://github.com/zfdang/chinese-lunar-calendar-for-mac
- Owner: zfdang
- Created: 2014-09-02T09:44:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T03:02:34.000Z (about 1 year ago)
- Last Synced: 2024-08-04T04:06:11.452Z (4 months ago)
- Topics: bar, calendar, chinese, icons, lunar, mac, macbook, menu, menubar, objective-c, osx, status, statusbar
- Language: Objective-C
- Homepage: http://calendar.zfdang.com
- Size: 22.5 MB
- Stars: 192
- Watchers: 17
- Forks: 47
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 1.MAC下的状态栏万年历
## 功能说明、界面、使用方法见:### [calendar.zfdang.com](http://calendar.zfdang.com)
# 2.Code Explanation
This is a menubar app which shows a simple chinese lunar calendar for OSX.There are two different implementations for this app:
### 2.1. WanNianLi
this project is using the official NSStatusItem to implement the menubar app.
Its posittion in the icon bar can't be moved.### 2.2. CLCLauncher + CLCMenuExtra
these two projects are using the un-official NSMenuExtra (hacking way) to implement the menubar app.
The calendar icon works in the same way with system's icon. You can use CMD+Drag to move it or remove it.CLCLauncher: this project is a agent application, which launch "MenuCracker.menu" & "CLCMenuExtra.menu"
It dependens on MenuCracker.menu and CLCMenuExtra.menu (these two bundles will be packed into CLCLauncher.app as resources)
CLCMenuExtra: this project finishs the actual functionality.
this bundle is using un-official NSMenuExtra API.# 3.Referrences
http://duhanebel.wordpress.com/2010/04/02/nsmenuextra-how-to-work-with-undocumented-apis/https://github.com/aschuch/AXStatusItemPopup
http://sourceforge.net/projects/menucracker/