comparison dwt/internal/cocoa/NSPrintInfo.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
comparison
equal deleted inserted replaced
59:83b0ad9d9238 60:62202ce0039f
49 return result !is null ? new NSMutableDictionary(result) : null; 49 return result !is null ? new NSMutableDictionary(result) : null;
50 } 50 }
51 51
52 public NSRect imageablePageBounds() { 52 public NSRect imageablePageBounds() {
53 NSRect result = NSRect(); 53 NSRect result = NSRect();
54 OS.objc_msgSend_stret(result, this.id, OS.sel_imageablePageBounds); 54 OS.objc_msgSend_stret(&result, this.id, OS.sel_imageablePageBounds);
55 return result; 55 return result;
56 } 56 }
57 57
58 public NSPrintInfo initWithDictionary(NSDictionary attributes) { 58 public NSPrintInfo initWithDictionary(NSDictionary attributes) {
59 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithDictionary_, attributes !is null ? attributes.id : null); 59 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithDictionary_, attributes !is null ? attributes.id : null);
65 return result !is null ? new NSString(result) : null; 65 return result !is null ? new NSString(result) : null;
66 } 66 }
67 67
68 public NSSize paperSize() { 68 public NSSize paperSize() {
69 NSSize result = NSSize(); 69 NSSize result = NSSize();
70 OS.objc_msgSend_stret(result, this.id, OS.sel_paperSize); 70 OS.objc_msgSend_stret(&result, this.id, OS.sel_paperSize);
71 return result; 71 return result;
72 } 72 }
73 73
74 public NSPrinter printer() { 74 public NSPrinter printer() {
75 objc.id result = OS.objc_msgSend(this.id, OS.sel_printer); 75 objc.id result = OS.objc_msgSend(this.id, OS.sel_printer);