5 * Created by jan truetzschler on 4/12/06.
6 * Copyright (c) 2006 jan truetzschler. All rights reserved.
8 SuperCollider real time audio synthesis system
9 Copyright (c) 2002 James McCartney. All rights reserved.
10 http://www.audiosynth.com
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
28 #import "SCNSWindow.h"
29 extern pthread_mutex_t gLangMutex;
31 @implementation SCNSWindow
32 - (BOOL) canBecomeKeyWindow { if(mHasBorders) return YES; else return [super canBecomeKeyWindow]; }
33 - (BOOL) hasBorders {return mHasBorders;}
34 - (void) setHasBorders: (BOOL) flag {mHasBorders = flag;}
35 - (void) setSCGraphView: (NSView*)view {mSCGraphView = view;}
36 - (NSView*) getSCGraphView {return mSCGraphView;}
37 - (IBAction) escape:(id)sender {
38 pthread_mutex_lock(&gLangMutex);
39 runLibrary(getsym("escapeWindow"));
40 pthread_mutex_unlock(&gLangMutex);
42 - (void)keyDown:(NSEvent *)event
44 if ([event keyCode] == 53)
47 } else [super keyDown:event];