Mercurial > projects > dwt-mac
comparison dwt/widgets/Display.d @ 123:63a09873578e
Fixed compile errors
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 15 Jan 2009 23:08:54 +0100 |
parents | c7f7f4d7091a |
children | 07399639c0c8 |
comparison
equal
deleted
inserted
replaced
122:2e671fa40eec | 123:63a09873578e |
---|---|
561 if (cascade is null) { | 561 if (cascade is null) { |
562 NSRect frame = screen.frame(); | 562 NSRect frame = screen.frame(); |
563 cascade = &NSPoint(); | 563 cascade = &NSPoint(); |
564 cascade.x = frame.x; | 564 cascade.x = frame.x; |
565 cascade.y = frame.y + frame.height; | 565 cascade.y = frame.y + frame.height; |
566 } | 566 } |
567 screenCascade[index] = &window.cascadeTopLeftFromPoint(*cascade); | 567 screenCascade[index] = &window.cascadeTopLeftFromPoint(*cascade); |
568 } | 568 } |
569 | 569 |
570 protected void checkDevice () { | 570 protected void checkDevice () { |
571 if (thread is null) error (DWT.ERROR_WIDGET_DISPOSED); | 571 if (thread is null) error (DWT.ERROR_WIDGET_DISPOSED); |
1766 protected void init_ () { | 1766 protected void init_ () { |
1767 super.init_ (); | 1767 super.init_ (); |
1768 initClasses (); | 1768 initClasses (); |
1769 | 1769 |
1770 if (!isEmbedded) { | 1770 if (!isEmbedded) { |
1771 initApplicationDelegate(); | 1771 initApplicationDelegate(); |
1772 application.finishLaunching(); | 1772 application.finishLaunching(); |
1773 } | 1773 } |
1774 | 1774 |
1775 timerDelegate = cast(SWTWindowDelegate)(new SWTWindowDelegate()).alloc().init(); | 1775 timerDelegate = cast(SWTWindowDelegate)(new SWTWindowDelegate()).alloc().init(); |
1776 | 1776 |
1777 NSTextView textView = cast(NSTextView)(new NSTextView()).alloc(); | 1777 NSTextView textView = cast(NSTextView)(new NSTextView()).alloc(); |
1778 textView.initWithFrame (NSRect ()); | 1778 textView.initWithFrame (NSRect ()); |
1779 markedAttributes = textView.markedTextAttributes (); | 1779 markedAttributes = textView.markedTextAttributes (); |
1780 markedAttributes.retain (); | 1780 markedAttributes.retain (); |
1781 textView.release (); | 1781 textView.release (); |
1782 } | 1782 } |
1783 | 1783 |
1784 void initApplicationDelegate() { | 1784 void initApplicationDelegate() { |
1785 String className = "SWTApplicationDelegate"; | 1785 String className = "SWTApplicationDelegate"; |
1786 if (OS.objc_lookUpClass (className) is null) { | 1786 if (OS.objc_lookUpClass (className) is null) { |