home *** CD-ROM | disk | FTP | other *** search
- /*
- 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.
- */
-
- /* A three-state button */
-
- #import <AppKit/AppKit.h>
- #import <Foundation/Foundation.h>
-
- typedef enum ToDoButtonState {
- notDone=0,
- done,
- deferred} ToDoButtonState;
-
- @interface ToDoCell : NSButtonCell
- {
- ToDoButtonState triState;
- NSImage *doneImage, *deferredImage;
- NSDate *timeDue;
- }
- - (void)setTriState:(ToDoButtonState)newState;
- - (ToDoButtonState)triState;
- - (void)setTimeDue:(NSDate *)newTime;
- - (NSDate *)timeDue;
- @end
-