2
votes

I’m writing a simple iCal-like app in Cocoa that I’d like to resemble the main view of iCal.

Does anyone know which GUI element (i.e. NSWhatever) was used to create the Month-view (this thing: http://skitch.com/edwardog/b38ba/ical)?

Thanks!

PS – A hint at figuring this sort of thing out for myself would also be well appreciated; I’ve got a feeling that the answer lies somewhere in .nib, but after poking around I didn’t have much luck.

3
Edward, did you ever work out a Calendar view control (hopefully with events)? I'd be interested in what you used for presenting modifiable events, etc.Byron
@Byron nope. Sadly, the project didn’t really go anywhere.Edward Ocampo-Gooding

3 Answers

3
votes

CalendarWindow.nib, "Window".

Looks like it's all custom views I'm afraid.

3
votes

The main calendar view must be a custom subclass of NSView, with custom drawing in the overridden drawRect: method.

If you really feel like poking around in running applications, check out F-Script Anywhere.

2
votes

I'm not claiming that iCal uses it, but you might try NSDatePicker, which supports a calendar style.