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


#import <objc/Object.h>
#import "Thinker.h"

#define LEN (40)

@interface Password:Object
{
    id	infoText;
    id	contentBox;
    id	window;
    id	clearText;
	char password[LEN];
	char attempt1[LEN];
	char attempt2[LEN];
	BOOL lockEnabled;
	BStimeval lastPasswordTime;
}

void safe_strcpy(char *to, const char *from);

- setPassword:sender;
- attemptToSetPassword:(const char *)text;
- userTypedReturn:sender;
- (BOOL) checkPassword:(const char *)text randomPos:(BOOL)random 
	checkLock:(BOOL)check withView:aView;
- orderWindowToFront;
- randomWindowPosition;
- createWindow;
- activePauseWithView:aView;
- setLock:(BOOL)flag;
- (BOOL) isLocked;
- (BOOL) validPassword;

@end

unix.superglobalmegacorp.com

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