aboutsummaryrefslogtreecommitdiff
path: root/sc4pd/headers/app/SCDialog.h
blob: fdebdbb17b9b135cfafaaf3cfb4d0ae660428c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
//  SCDialogs.h
//  SC3lang
//
//  Created by cruxxial on Tue Dec 17 2002.
//  Copyright (c) 2002 crucial-systems. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#include "PyrPrimitive.h"
#include "PyrObject.h"
#include "PyrKernel.h"
#include "VMGlobals.h"
#include "GC.h"
#include "PyrSched.h"
#import "SCVirtualMachine.h"

@interface SCDialog : NSObject {
    PyrObject *receiver;
    PyrObject *result;
	NSOpenPanel *openPanel;
}

+(id)receiver:(PyrObject*)argReceiver result:(PyrObject*)argResult;
-(id)initWithReceiver:(PyrObject*)argReceiver result:(PyrObject*)argResult;

-(void)ok;
-(void)cancel;
-(void)error;

-(void)returnPaths:(NSArray*)urls;
-(void)getPaths;
-(void)returnPath:(NSString*)path;


// call method on self when SCVM is ready for sclang usage
-(void)scvmDeferWithSelector:(SEL)selector;


@end