From fc4fa67c768ae1222877e936b9365378fd3a217f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 26 May 2011 09:24:38 +1000 Subject: List box doesn't work on Cocoa and stops 64-bit building so disable its code --- cocoa/PlatCocoa.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index 3a70fcd93..24c74c70e 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1382,6 +1382,9 @@ void ListBoxImpl::DrawRow(DataBrowserItemID item, DataBrowserItemState itemState, const Rect *theRect) { +// ListBox does not work on Cocoa +// Just make compile for now +#if 0 Rect row = *theRect; row.left = 0; @@ -1441,6 +1444,7 @@ void ListBoxImpl::DrawRow(DataBrowserItemID item, QDEndCGContext( port, &cgContext ); delete surfaceItem; } +#endif } @@ -1525,6 +1529,9 @@ void ListBoxImpl::InstallDataBrowserCustomCallbacks() } void ListBoxImpl::SetFont(Font &font_) { +// ListBox does not work on Cocoa +// Just make compile for now +#if 0 // Having to do this conversion is LAME QuartzTextStyle *ts = reinterpret_cast( font_.GetID() ); ControlFontStyleRec style; @@ -1554,6 +1561,9 @@ void ListBoxImpl::SetFont(Font &font_) { ::CFStringGetCString( fontNameCF, fontName, (CFIndex)255, kCFStringEncodingMacRoman ); font.Create((const char *)fontName, 0, style.size, false, false); +#else + font.Create("Monaco", 0, 10, false, false); +#endif } void ListBoxImpl::SetAverageCharWidth(int width) { -- cgit v1.2.3