Latest 0.1
Homepage https://github.com/gyetvan-andras/Calendar-OSX
License MIT
Platforms osx 10.10, requires ARC
Authors

Calendar-OSX

Calendar component for OSX inspired by some free iOS calendar

Sample

Description

MLCalendarView is a date selector component which is represented as a month calendar. This component extracted from the ModerLook-OSX package for easier standalone use.

The component uses the system Language & Region settings, so it will display the month and day names regarding to the system settings. Also it lays out the days according to the first day of week system setting.

Usage

To use the component in your project you need to copy all the files in the MLCalendar group to your project.

MLCalendarView is derived from NSViewController and can be used as any other view.

The component contains the following properties to change the default colors used by the calendar.

@property (nonatomic, copy) NSColor* backgroundColor;
@property (nonatomic, copy) NSColor* textColor;
@property (nonatomic, copy) NSColor* selectionColor;
@property (nonatomic, copy) NSColor* todayMarkerColor;
@property (nonatomic, copy) NSColor* dayMarkerColor;

And the following two properties to set the selected date and the currently displayed month.

@property (nonatomic, strong) NSDate* date;
@property (nonatomic, strong) NSDate* selectedDate;

Also, there is a delegate for the calendar, which is used to send a message when the selected date changed.

@protocol MLCalendarViewDelegate <NSObject>
- (void) didSelectDate:(NSDate*)selectedDate;
@end

Sample Application

The sample application shows the usage of the component as an NSPopover content.

License

MIT

Latest podspec

{
    "name": "MLCalendarView",
    "version": "0.1",
    "summary": "Calendar component for OS X inspired by some free iOS alternatives.",
    "homepage": "https://github.com/gyetvan-andras/Calendar-OSX",
    "license": "MIT",
    "authors": {
        "Gyetvu00e1n Andru00e1s": "[email protected]"
    },
    "platforms": {
        "osx": "10.10"
    },
    "source": {
        "git": "https://github.com/ElaWorkshop/Calendar-OSX.git",
        "tag": "0.1"
    },
    "source_files": "MLCalendarSample/ML*.{h,m}",
    "resources": "MLCalendarSample/*.xib",
    "requires_arc": true
}

Pin It on Pinterest

Share This