comparison dwt/internal/cocoa/NSMethodSignature.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
31 super(id); 31 super(id);
32 } 32 }
33 33
34 public NSUInteger frameLength () 34 public NSUInteger frameLength ()
35 { 35 {
36 return OS.objc_msgSend(this.id, OS.sel_frameLength); 36 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_frameLength);
37 } 37 }
38 38
39 public /*const*/char* getArgumentTypeAtIndex (NSUInteger idx) 39 public /*const*/char* getArgumentTypeAtIndex (NSUInteger idx)
40 { 40 {
41 return OS.objc_msgSend(this.id, OS.sel_getArgumentTypeAtIndex_1, idx); 41 return cast(/*const*/char*) OS.objc_msgSend(this.id_, OS.sel_getArgumentTypeAtIndex_1, idx);
42 } 42 }
43 43
44 public bool isOneway () 44 public bool isOneway ()
45 { 45 {
46 return OS.objc_msgSend(this.id, OS.sel_isOneway) !is null; 46 return OS.objc_msgSend(this.id_, OS.sel_isOneway) !is null;
47 } 47 }
48 48
49 public NSUInteger methodReturnLength () 49 public NSUInteger methodReturnLength ()
50 { 50 {
51 return OS.objc_msgSend(this.id, OS.sel_methodReturnLength); 51 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_methodReturnLength);
52 } 52 }
53 53
54 public /*const*/char* methodReturnType () 54 public /*const*/char* methodReturnType ()
55 { 55 {
56 return OS.objc_msgSend(this.id, OS.sel_methodReturnType); 56 return cast(/*const*/char*) OS.objc_msgSend(this.id_, OS.sel_methodReturnType);
57 } 57 }
58 58
59 public NSUInteger numberOfArguments () 59 public NSUInteger numberOfArguments ()
60 { 60 {
61 return OS.objc_msgSend(this.id, OS.sel_numberOfArguments); 61 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_numberOfArguments);
62 } 62 }
63 63
64 public static NSMethodSignature signatureWithObjCTypes (/*const*/char* types) 64 public static NSMethodSignature signatureWithObjCTypes (/*const*/char* types)
65 { 65 {
66 objc.id result = OS.objc_msgSend(OS.class_NSMethodSignature, OS.sel_signatureWithObjCTypes_1, types); 66 objc.id result = OS.objc_msgSend(OS.class_NSMethodSignature, OS.sel_signatureWithObjCTypes_1, types);