comparison dwt/internal/cocoa/NSArray.d @ 129:ad4e1fe71a5a

Fixed runtime errors
author Jacob Carlborg <doob@me.com>
date Sun, 18 Jan 2009 18:39:46 +0100
parents 62202ce0039f
children
comparison
equal deleted inserted replaced
128:07399639c0c8 129:ad4e1fe71a5a
51 public NSUInteger count() { 51 public NSUInteger count() {
52 return cast(NSUInteger) 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;
58 } 58 }
59 59
60 } 60 }