Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSPasteboard.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 |
---|---|
65 return result !is null ? new NSPasteboard(result) : null; | 65 return result !is null ? new NSPasteboard(result) : null; |
66 } | 66 } |
67 | 67 |
68 public cocoa.id propertyListForType(NSString dataType) { | 68 public cocoa.id propertyListForType(NSString dataType) { |
69 objc.id result = OS.objc_msgSend(this.id, OS.sel_propertyListForType_, dataType !is null ? dataType.id : null); | 69 objc.id result = OS.objc_msgSend(this.id, OS.sel_propertyListForType_, dataType !is null ? dataType.id : null); |
70 return result !is null ? new id(result) : null; | 70 return result !is null ? new cocoa.id(result) : null; |
71 } | 71 } |
72 | 72 |
73 public bool setData(NSData data, NSString dataType) { | 73 public bool setData(NSData data, NSString dataType) { |
74 return OS.objc_msgSend_bool(this.id, OS.sel_setData_forType_, data !is null ? data.id : null, dataType !is null ? dataType.id : null); | 74 return OS.objc_msgSend_bool(this.id, OS.sel_setData_forType_, data !is null ? data.id : null, dataType !is null ? dataType.id : null); |
75 } | 75 } |