File:  [NeXTSTEP 3.3 examples] / Examples / DatabaseKit / Formatter / DateTFCell.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:58 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3


/* Generated by Interface Builder */

#import <appkit/TextFieldCell.h>
#import <appkit/appkit.h>

@interface DateTFCell:TextFieldCell
{
	NXTextFilterFunc oldTextFilter; /* hold original filter func */
}

/* override these methods so that when the user TABs into the TextField or 
 * mouseDowns into the TextField, the filter function of the fieldEditor can be 
 * changed.  These are the two ways that a TextField can be enabled for taking 
 * user input so this is the place to control the user input.
 */
 
- select:(const NXRect *)aRect inView:controlView editor:textObj delegate:anObject start:(int)selStart length:(int)selLength;

- edit:(const NXRect *)aRect inView:controlView editor:textObj delegate:anObject event:(NXEvent *)theEvent;

/* override this method to remove the fieldEditor from the View hierarchy */

- endEditing:anObject;

/* the filter function for the DateTFCell and DateTextField */

char *dateFilter(id textObj, char *inputText, int *inputLength, int position);

@end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.