This is ToDoMatrix.m in view mode; [Download] [Up]
/*
* ToDoMatrix
*
* You may freely copy, distribute and reuse the code in this example.
* This code is provided AS IS without warranty of any kind, expressed
* or implied, as to its fitness for any particular use.
*
* Copyright 1995 Ralph Zazula (rzazula@next.com). All Rights Reserved.
*
*/
#import "ToDoMatrix.h"
@implementation ToDoMatrix
- mouseDown:(NXEvent *)theEvent
{
if ([window makeFirstResponder:window]) {
[window endEditingFor:nil];
}
return [super mouseDown:theEvent];
}
- (BOOL)acceptsFirstResponder
{
return YES;
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.