comparison dwt/internal/cocoa/NSCompoundPredicate.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 } 34 }
35 35
36 public static NSPredicate andPredicateWithSubpredicates (NSArray subpredicates) 36 public static NSPredicate andPredicateWithSubpredicates (NSArray subpredicates)
37 { 37 {
38 objc.id result = OS.objc_msgSend(OS.class_NSCompoundPredicate, OS.sel_andPredicateWithSubpredicates_1, 38 objc.id result = OS.objc_msgSend(OS.class_NSCompoundPredicate, OS.sel_andPredicateWithSubpredicates_1,
39 subpredicates !is null ? subpredicates.id : null); 39 subpredicates !is null ? subpredicates.id_ : null);
40 return result !is null ? new NSPredicate(result) : null; 40 return result !is null ? new NSPredicate(result) : null;
41 } 41 }
42 42
43 public objc.id compoundPredicateType () 43 public objc.id compoundPredicateType ()
44 { 44 {
45 return OS.objc_msgSend(this.id, OS.sel_compoundPredicateType); 45 return OS.objc_msgSend(this.id_, OS.sel_compoundPredicateType);
46 } 46 }
47 47
48 public id initWithType (objc.id type, NSArray subpredicates) 48 public id initWithType (objc.id type, NSArray subpredicates)
49 { 49 {
50 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithType_1subpredicates_1, type, subpredicates !is null ? subpredicates.id : null); 50 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithType_1subpredicates_1, type, subpredicates !is null ? subpredicates.id_ : null);
51 return result !is null ? new id(result) : null; 51 return result !is null ? new id(result) : null;
52 } 52 }
53 53
54 public static NSPredicate notPredicateWithSubpredicate (NSPredicate predicate) 54 public static NSPredicate notPredicateWithSubpredicate (NSPredicate predicate)
55 { 55 {
56 objc.id result = OS.objc_msgSend(OS.class_NSCompoundPredicate, OS.sel_notPredicateWithSubpredicate_1, 56 objc.id result = OS.objc_msgSend(OS.class_NSCompoundPredicate, OS.sel_notPredicateWithSubpredicate_1,
57 predicate !is null ? predicate.id : null); 57 predicate !is null ? predicate.id_ : null);
58 return result !is null ? new NSPredicate(result) : null; 58 return result !is null ? new NSPredicate(result) : null;
59 } 59 }
60 60
61 public static NSPredicate orPredicateWithSubpredicates (NSArray subpredicates) 61 public static NSPredicate orPredicateWithSubpredicates (NSArray subpredicates)
62 { 62 {
63 objc.id result = OS.objc_msgSend(OS.class_NSCompoundPredicate, OS.sel_orPredicateWithSubpredicates_1, 63 objc.id result = OS.objc_msgSend(OS.class_NSCompoundPredicate, OS.sel_orPredicateWithSubpredicates_1,
64 subpredicates !is null ? subpredicates.id : null); 64 subpredicates !is null ? subpredicates.id_ : null);
65 return result !is null ? new NSPredicate(result) : null; 65 return result !is null ? new NSPredicate(result) : null;
66 } 66 }
67 67
68 public NSArray subpredicates () 68 public NSArray subpredicates ()
69 { 69 {
70 objc.id result = OS.objc_msgSend(this.id, OS.sel_subpredicates); 70 objc.id result = OS.objc_msgSend(this.id_, OS.sel_subpredicates);
71 return result !is null ? new NSArray(result) : null; 71 return result !is null ? new NSArray(result) : null;
72 } 72 }
73 73
74 } 74 }