X-Git-Url: http://www.entropy.ch/git/LeanCalc.git/blobdiff_plain/ffa749385a50695ec814776fa667d9f1f267b47c..c63394a796dd31e2e7ccdc85e2630629e90080c6:/Sources/MyDocument.m diff --git a/Sources/MyDocument.m b/Sources/MyDocument.m index a273168..514b3ed 100644 --- a/Sources/MyDocument.m +++ b/Sources/MyDocument.m @@ -34,13 +34,10 @@ - (void)awakeFromNib { - if (![self fileName]) { [arrayController add:self]; } - [arrayController setSelectionIndex:[calculations count] - 1]; - } @@ -99,6 +96,13 @@ return selectedObject && ![self lastItemIsSelected] && ![selectedObject expressionIsEmpty]; } +/* +- (BOOL)textView:(NSTextView *)aTextView doCommandBySelector:(SEL)aSelector { + NSLog(@"text view by selector %d", aSelector); + return NO; +} +*/ + - (IBAction)copy:(id)sender { NSPasteboard *pboard = [NSPasteboard generalPasteboard]; @@ -108,8 +112,6 @@ } - - - (NSString *)windowNibName { return @"MyDocument"; }