Using the better code form preble's 7330a0024296a41b21d05c150aeb255c89a54500 for setDocumentEdited (Switched to Xcode 4)
25 lines
425 B
Objective-C
25 lines
425 B
Objective-C
//
|
|
// IJTableView.m
|
|
// InsideJob
|
|
//
|
|
// Created by Adam Preble on 12/14/10.
|
|
// Copyright 2010 Adam Preble. All rights reserved.
|
|
//
|
|
|
|
#import "IJTableView.h"
|
|
|
|
|
|
@implementation IJTableView
|
|
|
|
- (void)keyDown:(NSEvent *)theEvent
|
|
{
|
|
unichar ch = [[theEvent characters] characterAtIndex:0];
|
|
if (ch == '\r') // return key
|
|
{
|
|
[self sendAction:[self doubleAction] to:[self target]];
|
|
return;
|
|
}
|
|
[super keyDown:theEvent];
|
|
}
|
|
|
|
@end |