comparison dwt/internal/cocoa/NSArray.d @ 60:62202ce0039f

Updated and fixed many modules to 3.514
author Jacob Carlborg <doob@me.com>
date Mon, 22 Dec 2008 15:10:19 +0100
parents d8635bb48c7c
children ad4e1fe71a5a
comparison
equal deleted inserted replaced
59:83b0ad9d9238 60:62202ce0039f
47 public bool containsObject(cocoa.id anObject) { 47 public bool containsObject(cocoa.id anObject) {
48 return OS.objc_msgSend_bool(this.id, OS.sel_containsObject_, anObject !is null ? anObject.id : null); 48 return OS.objc_msgSend_bool(this.id, OS.sel_containsObject_, anObject !is null ? anObject.id : null);
49 } 49 }
50 50
51 public NSUInteger count() { 51 public NSUInteger count() {
52 return OS.objc_msgSend(this.id, OS.sel_count); 52 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_count);
53 } 53 }
54 54
55 public cocoa.id objectAtIndex(NSUInteger index) { 55 public cocoa.id objectAtIndex(NSUInteger index) {
56 objc.id result = OS.objc_msgSend(this.id, OS.sel_objectAtIndex_, index); 56 objc.id result = OS.objc_msgSend(this.id, OS.sel_objectAtIndex_, index);
57 return result !is null ? new cocoa.id(result) : null; 57 return result !is null ? new cocoa.id(result) : null;