GithubHelp home page GithubHelp logo

elaworkshop / calendar-osx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gyetvan-andras/calendar-osx

0.0 5.0 0.0 205 KB

Calendar component for OSX inspired by some free iOS alternatives

License: MIT License

Objective-C 96.66% Ruby 3.34%

calendar-osx's Introduction

Calendar-OSX

Calendar component for OSX inspired by some free iOS calendar

Sample

MLCalendarView in NSPopover

#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

calendar-osx's People

Contributors

gyetvan-andras avatar xhacker avatar

Watchers

LOU Xun avatar James Cloos avatar  avatar Tianyu Wang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.