DeChinees
DeChinees

Reputation: 293

Objective-C Calendar in simple window. How?

My aim is to create a status bar application which will draw drop down calendar. I'm fairly new to programming in Objective-C and I thought this might be a good project to learn the language.

Do I a draw a calendar in an NSMenuItem(custom) or is this the wrong approach. Will I be using the NSDatePicker to draw the calendar? I cannot find a DatePicker object in XCode which I can drag-drop on the canvas like in VS2010.

I want the calendar look like this: enter image description here

How do I proceed?

Upvotes: 2

Views: 1941

Answers (2)

Anne
Anne

Reputation: 27073

Checkout the following example:
Using MAAttachedWindow with an NSStatusItem

Download the project and change the SDK to make it working:

Xcode Screenshot

Now add the NSDatePicker in Interface Builder and change its style to graphical.

Xcode Screenshot

Upvotes: 3

TheAmateurProgrammer
TheAmateurProgrammer

Reputation: 9392

Just get a date picker and change it's style to Graphical.

Upvotes: 2

Related Questions