comparison dwt/widgets/Widget.d @ 123:63a09873578e

Fixed compile errors
author Jacob Carlborg <doob@me.com>
date Thu, 15 Jan 2009 23:08:54 +0100
parents b24476d6dedf
children 03fac5984741
comparison
equal deleted inserted replaced
122:2e671fa40eec 123:63a09873578e
451 void comboBoxSelectionDidChange(objc.id id, objc.SEL sel, objc.id notification) { 451 void comboBoxSelectionDidChange(objc.id id, objc.SEL sel, objc.id notification) {
452 } 452 }
453 453
454 void copyToClipboard (char [] buffer) { 454 void copyToClipboard (char [] buffer) {
455 if (buffer.length is 0) return; 455 if (buffer.length is 0) return;
456 wchar[] buf = buffer.toString16();
456 NSPasteboard pasteboard = NSPasteboard.generalPasteboard (); 457 NSPasteboard pasteboard = NSPasteboard.generalPasteboard ();
457 pasteboard.declareTypes (NSArray.arrayWithObject (OS.NSStringPboardType), null); 458 pasteboard.declareTypes (NSArray.arrayWithObject (OS.NSStringPboardType), null);
458 pasteboard.setString (NSString.stringWithCharacters (buffer.toString16().ptr, buffer.length), OS.NSStringPboardType); 459 pasteboard.setString (NSString.stringWithCharacters (buf.ptr, buf.length), OS.NSStringPboardType);
459 } 460 }
460 461
461 void createHandle () { 462 void createHandle () {
462 } 463 }
463 464
883 884
884 void menuWillOpen(objc.id id, objc.SEL sel, objc.id menu) { 885 void menuWillOpen(objc.id id, objc.SEL sel, objc.id menu) {
885 } 886 }
886 887
887 objc.id numberOfRowsInTableView(objc.id id, objc.SEL sel, objc.id aTableView) { 888 objc.id numberOfRowsInTableView(objc.id id, objc.SEL sel, objc.id aTableView) {
888 return cast(objc.id )0; 889 return null;
889 } 890 }
890 891
891 objc.id outlineView_child_ofItem(objc.id id, objc.SEL sel, objc.id outlineView, objc.id index, objc.id item) { 892 objc.id outlineView_child_ofItem(objc.id id, objc.SEL sel, objc.id outlineView, objc.id index, objc.id item) {
892 return null; 893 return null;
893 } 894 }