comparison dwt/internal/cocoa/NSMetadataItem.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
34 super(id); 34 super(id);
35 } 35 }
36 36
37 public NSArray attributes () 37 public NSArray attributes ()
38 { 38 {
39 objc.id result = OS.objc_msgSend(this.id, OS.sel_attributes); 39 objc.id result = OS.objc_msgSend(this.id_, OS.sel_attributes);
40 return result !is null ? new NSArray(result) : null; 40 return result !is null ? new NSArray(result) : null;
41 } 41 }
42 42
43 public id valueForAttribute (NSString key) 43 public id valueForAttribute (NSString key)
44 { 44 {
45 objc.id result = OS.objc_msgSend(this.id, OS.sel_valueForAttribute_1, key !is null ? key.id : null); 45 objc.id result = OS.objc_msgSend(this.id_, OS.sel_valueForAttribute_1, key !is null ? key.id_ : null);
46 return result !is null ? new id(result) : null; 46 return result !is null ? new id(result) : null;
47 } 47 }
48 48
49 public NSDictionary valuesForAttributes (NSArray keys) 49 public NSDictionary valuesForAttributes (NSArray keys)
50 { 50 {
51 objc.id result = OS.objc_msgSend(this.id, OS.sel_valuesForAttributes_1, keys !is null ? keys.id : null); 51 objc.id result = OS.objc_msgSend(this.id_, OS.sel_valuesForAttributes_1, keys !is null ? keys.id_ : null);
52 return result !is null ? new NSDictionary(result) : null; 52 return result !is null ? new NSDictionary(result) : null;
53 } 53 }
54 54
55 } 55 }