summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/scriptingbridge/SBObject.inc
blob: 0f82dcac97edf6586de959385b77cf8dfa02209f (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
{ Parsed from ScriptingBridge.framework SBObject.h }


{$ifdef TYPES}
type
  SBObjectPtr = ^SBObject;
{$endif}

{$ifdef CLASSES}

type
  SBObject = objcclass external (NSObject, NSCodingProtocol)
  private
    _specifier: AEDesc;
    _ctx: SBAppContext;
    _reserved: id;
  public
    function init: id; message 'init';
    function initWithProperties (properties: NSDictionary): id; message 'initWithProperties:';
    function initWithData (data: id): id; message 'initWithData:';
    function get: id; message 'get';
    function lastError: NSError; message 'lastError'; { available in 10_6, NA }

    { Adopted protocols }
    procedure encodeWithCoder (aCoder: NSCoder); message 'encodeWithCoder:';
    function initWithCoder (aDecoder: NSCoder): id; message 'initWithCoder:';
  end;


type
  SBGlueInterface = objccategory external (SBObject)
    function initWithElementCode_properties_data (code: DescType; properties: NSDictionary; data: id): id; message 'initWithElementCode:properties:data:';
    function propertyWithCode (code: AEKeyword): SBObject; message 'propertyWithCode:';
    function propertyWithClass_code (cls: pobjc_class; code: AEKeyword): SBObject; message 'propertyWithClass:code:';
    function elementArrayWithCode (code: DescType): SBElementArray; message 'elementArrayWithCode:';
    function sendEvent_id_parameters (eventClass: AEEventClass; eventID: AEEventID; firstParamCode: DescType): id; varargs; message 'sendEvent:id:parameters:';
    procedure setTo (value: id); message 'setTo:';
  end;
{$endif}