home *** CD-ROM | disk | FTP | other *** search
- // CalendarView.h
- // By Jayson Adams, NeXT Developer Support Team
- // You may freely copy, distribute and reuse the code in this example.
- // NeXT disclaims any warranty of any kind, expressed or implied, as to its
- // fitness for any particular use.
- /* Modified by Scott Stark, Fri Jan 17 1992 */
-
- #import <appkit/View.h>
-
- @interface CalendarView : View
- {
- /* NXImages for displaying the calendar */
- id calendarImage;
- id numbers[10];
- id smallNumbers[10];
- id days[7];
- id months[12];
- /* My Date object */
- id dateObj;
- }
-
- /* instance methods */
- - initFrame : (NXRect *) frameRect;
- - drawSelf : (NXRect *) rects : (int)count;
-
- /* Setting the date */
- - setDate : (short) d : (short) m : (short) y;
- - today;
-
- @end
-