Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSScriptCommandDescription.d @ 1:8b48be5454ce
The internal cocoa classes compile now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 17:35:17 +0200 |
parents | 380af2bdd8e5 |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
0:380af2bdd8e5 | 1:8b48be5454ce |
---|---|
37 super(id); | 37 super(id); |
38 } | 38 } |
39 | 39 |
40 public FourCharCode appleEventClassCode () | 40 public FourCharCode appleEventClassCode () |
41 { | 41 { |
42 return cast(FourCharCode) OS.objc_msgSend(this.id, OS.sel_appleEventClassCode); | 42 return cast(FourCharCode) OS.objc_msgSend(this.id_, OS.sel_appleEventClassCode); |
43 } | 43 } |
44 | 44 |
45 public FourCharCode appleEventCode () | 45 public FourCharCode appleEventCode () |
46 { | 46 { |
47 return cast(FourCharCode) OS.objc_msgSend(this.id, OS.sel_appleEventCode); | 47 return cast(FourCharCode) OS.objc_msgSend(this.id_, OS.sel_appleEventCode); |
48 } | 48 } |
49 | 49 |
50 public FourCharCode appleEventCodeForArgumentWithName (NSString argumentName) | 50 public FourCharCode appleEventCodeForArgumentWithName (NSString argumentName) |
51 { | 51 { |
52 return cast(FourCharCode) OS.objc_msgSend(this.id, OS.sel_appleEventCodeForArgumentWithName_1, argumentName !is null ? argumentName.id : null); | 52 return cast(FourCharCode) OS.objc_msgSend(this.id_, OS.sel_appleEventCodeForArgumentWithName_1, argumentName !is null ? argumentName.id_ : null); |
53 } | 53 } |
54 | 54 |
55 public FourCharCode appleEventCodeForReturnType () | 55 public FourCharCode appleEventCodeForReturnType () |
56 { | 56 { |
57 return cast(FourCharCode) OS.objc_msgSend(this.id, OS.sel_appleEventCodeForReturnType); | 57 return cast(FourCharCode) OS.objc_msgSend(this.id_, OS.sel_appleEventCodeForReturnType); |
58 } | 58 } |
59 | 59 |
60 public NSArray argumentNames () | 60 public NSArray argumentNames () |
61 { | 61 { |
62 objc.id result = OS.objc_msgSend(this.id, OS.sel_argumentNames); | 62 objc.id result = OS.objc_msgSend(this.id_, OS.sel_argumentNames); |
63 return result !is null ? new NSArray(result) : null; | 63 return result !is null ? new NSArray(result) : null; |
64 } | 64 } |
65 | 65 |
66 public NSString commandClassName () | 66 public NSString commandClassName () |
67 { | 67 { |
68 objc.id result = OS.objc_msgSend(this.id, OS.sel_commandClassName); | 68 objc.id result = OS.objc_msgSend(this.id_, OS.sel_commandClassName); |
69 return result !is null ? new NSString(result) : null; | 69 return result !is null ? new NSString(result) : null; |
70 } | 70 } |
71 | 71 |
72 public NSString commandName () | 72 public NSString commandName () |
73 { | 73 { |
74 objc.id result = OS.objc_msgSend(this.id, OS.sel_commandName); | 74 objc.id result = OS.objc_msgSend(this.id_, OS.sel_commandName); |
75 return result !is null ? new NSString(result) : null; | 75 return result !is null ? new NSString(result) : null; |
76 } | 76 } |
77 | 77 |
78 public NSScriptCommand createCommandInstance () | 78 public NSScriptCommand createCommandInstance () |
79 { | 79 { |
80 objc.id result = OS.objc_msgSend(this.id, OS.sel_createCommandInstance); | 80 objc.id result = OS.objc_msgSend(this.id_, OS.sel_createCommandInstance); |
81 return result !is null ? new NSScriptCommand(result) : null; | 81 return result !is null ? new NSScriptCommand(result) : null; |
82 } | 82 } |
83 | 83 |
84 public NSScriptCommand createCommandInstanceWithZone (NSZone* zone) | 84 public NSScriptCommand createCommandInstanceWithZone (NSZone* zone) |
85 { | 85 { |
86 objc.id result = OS.objc_msgSend(this.id, OS.sel_createCommandInstanceWithZone_1, zone); | 86 objc.id result = OS.objc_msgSend(this.id_, OS.sel_createCommandInstanceWithZone_1, zone); |
87 return result !is null ? new NSScriptCommand(result) : null; | 87 return result !is null ? new NSScriptCommand(result) : null; |
88 } | 88 } |
89 | 89 |
90 public id initWithSuiteName (NSString suiteName, NSString commandName, NSDictionary commandDeclaration) | 90 public id initWithSuiteName (NSString suiteName, NSString commandName, NSDictionary commandDeclaration) |
91 { | 91 { |
92 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithSuiteName_1commandName_1dictionary_1, suiteName !is null ? suiteName.id : null, | 92 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithSuiteName_1commandName_1dictionary_1, suiteName !is null ? suiteName.id_ : null, |
93 commandName !is null ? commandName.id : null, commandDeclaration !is null ? commandDeclaration.id : null); | 93 commandName !is null ? commandName.id_ : null, commandDeclaration !is null ? commandDeclaration.id_ : null); |
94 return result !is null ? new id(result) : null; | 94 return result !is null ? new id(result) : null; |
95 } | 95 } |
96 | 96 |
97 public bool isOptionalArgumentWithName (NSString argumentName) | 97 public bool isOptionalArgumentWithName (NSString argumentName) |
98 { | 98 { |
99 return OS.objc_msgSend(this.id, OS.sel_isOptionalArgumentWithName_1, argumentName !is null ? argumentName.id : null) !is null; | 99 return OS.objc_msgSend(this.id_, OS.sel_isOptionalArgumentWithName_1, argumentName !is null ? argumentName.id_ : null) !is null; |
100 } | 100 } |
101 | 101 |
102 public NSString returnType () | 102 public NSString returnType () |
103 { | 103 { |
104 objc.id result = OS.objc_msgSend(this.id, OS.sel_returnType); | 104 objc.id result = OS.objc_msgSend(this.id_, OS.sel_returnType); |
105 return result !is null ? new NSString(result) : null; | 105 return result !is null ? new NSString(result) : null; |
106 } | 106 } |
107 | 107 |
108 public NSString suiteName () | 108 public NSString suiteName () |
109 { | 109 { |
110 objc.id result = OS.objc_msgSend(this.id, OS.sel_suiteName); | 110 objc.id result = OS.objc_msgSend(this.id_, OS.sel_suiteName); |
111 return result !is null ? new NSString(result) : null; | 111 return result !is null ? new NSString(result) : null; |
112 } | 112 } |
113 | 113 |
114 public NSString typeForArgumentWithName (NSString argumentName) | 114 public NSString typeForArgumentWithName (NSString argumentName) |
115 { | 115 { |
116 objc.id result = OS.objc_msgSend(this.id, OS.sel_typeForArgumentWithName_1, argumentName !is null ? argumentName.id : null); | 116 objc.id result = OS.objc_msgSend(this.id_, OS.sel_typeForArgumentWithName_1, argumentName !is null ? argumentName.id_ : null); |
117 return result !is null ? new NSString(result) : null; | 117 return result !is null ? new NSString(result) : null; |
118 } | 118 } |
119 | 119 |
120 } | 120 } |