Awesome Open Source
Awesome Open Source

1.MAC下的状态栏万年历

功能说明、界面、使用方法见:

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/


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
objective-c (10,795
osx (323
calendar (277
icons (272
mac (268
chinese (191
menu (167
menubar (73
statusbar (47
status (47
bar (39
macbook (16

Find Open Source By Browsing 7,000 Topics Across 59 Categories