summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSViewController.inc
blob: 0d6a10ab229b60bcd9c76edff40c75a5d73650c9 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{ Parsed from Appkit.framework NSViewController.h }

{$ifdef TYPES}
{$ifndef NSVIEWCONTROLLER_PAS_T}
{$define NSVIEWCONTROLLER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSVIEWCONTROLLER_PAS_R}
{$define NSVIEWCONTROLLER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSVIEWCONTROLLER_PAS_F}
{$define NSVIEWCONTROLLER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSVIEWCONTROLLER_PAS_S}
{$define NSVIEWCONTROLLER_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSViewController = objcclass;
  NSViewControllerPointer = ^NSViewController;
  NSViewControllerPtr = NSViewControllerPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSVIEWCONTROLLER_PAS_C}
{$define NSVIEWCONTROLLER_PAS_C}

{ NSViewController }
  NSViewController = objcclass external (NSResponder)
  private
    _nibName: NSString;
    _nibBundle: NSBundle;
    _representedObject: id;
    _title: NSString;
    _view: NSView;
    _topLevelObjects: NSArray;
    _editors: NSPointerArray;
    _autounbinder: id;
    _designNibBundleIdentifier: NSString;
    _reserved: array[0..(2)-1] of id;
    
  public
    function initWithNibName_bundle(nibNameOrNil: NSString; nibBundleOrNil: NSBundle): id; message 'initWithNibName:bundle:';
    procedure setRepresentedObject(representedObject_: id); message 'setRepresentedObject:';
    function representedObject: id; message 'representedObject';
    procedure setTitle(title_: NSString); message 'setTitle:';
    function title: NSString; message 'title';
    function view: NSView; message 'view';
    procedure loadView; message 'loadView';
    function nibName: NSString; message 'nibName';
    function nibBundle: NSBundle; message 'nibBundle';
    procedure setView(view_: NSView); message 'setView:';
    procedure commitEditingWithDelegate_didCommitSelector_contextInfo(delegate: id; didCommitSelector: SEL; contextInfo: Pointer); message 'commitEditingWithDelegate:didCommitSelector:contextInfo:';
    function commitEditing: Boolean; message 'commitEditing';
    procedure discardEditing; message 'discardEditing';
  end;

{$endif}
{$endif}