CocoaDev

Edit AllPages

#import “KeyView.h”

@implementation KeyView

-(void)dealloc { [nonVisibleDict release]; [self release]; }

-(void)awakeFromNib {

NSArray *keys=[NSArray arrayWithObjects:@"76",@"36",@"122",@"120",@"99",@"118", @"96",@"97",@"98",@"100",@"101",@"109",@"103",@"111", @"124",@"123",@"125",@"126",@"51",@"53",@"49",@"48",nil];
    NSArray *objects=[NSArray arrayWithObjects:@"Enter",@"Return",@"F1",@"F2",@"F3" ,@"F4",@"F5",@"F6",@"F7",@"F8", @"F9",@"F10",@"F11",@"F12",@"Right Arrow",@"Left Arrow",@"Down Arrow", @"Up Arrow",@"Delete",@"Escape",@"Space",@"Tab",nil];
    
    nonVisibleDict=[[[NSDictionary alloc] initWithObjects:objects forKeys:keys] retain]; }

}

}

}

@end