wxWidgets/include/wx/osx
Václav Slavík 8e70ef3aec OS X: Fix wxDataViewBitmapRenderer autosizing
wxDataViewCtrl code expects, quite reasonably, that NSCell's cellSize:
will behave as documented and return the minimal size for image cells
too. Unfortunately, that's not the case.

A cell created as NSImageCell, which seems to exists for exactly this
purpose, will always return the size as (0,0), regardless of whether it
has any image set or not an regardless of its size.

On the other hand, a cell created with NSCell.imageCell constructor
sizes itself correctly, but is not a NSImageCell instance and somehow
interferes with other wxDataViewCtrl rendering, presumably due to its
special status.

The simplest fix to make the sizing work correctly therefore seems to be
to specialize NSImageCell and implement its (trivial) cellSize: method.
2016-10-08 18:29:22 +02:00
..
carbon Remove more unused wxOSX/Carbon headers 2016-02-07 14:20:45 +01:00
cocoa OS X: Fix wxDataViewBitmapRenderer autosizing 2016-10-08 18:29:22 +02:00
core Don't set initial label in wxNativeWindow on OS X 2016-04-29 17:26:02 +02:00
iphone Fix wxiOS build after Enable{Max,Min}imizeButton() addition 2015-09-07 12:47:38 +02:00
private Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
accel.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
activityindicator.h Add wxActivityIndicator control. 2015-03-20 00:08:37 +01:00
anybutton.h Addition of overrides in anybutton.h, collpaneg.h, notebook.h, spinctlg.h, srchctrl.h and radiobox.h 2015-11-22 10:15:41 +01:00
app.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
appprogress.h Add OS X implementation of wxAppProgressIndicator. 2015-02-15 20:09:10 +00:00
bitmap.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
bmpbuttn.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
brush.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
button.h Remove private wxDisclosureTriangle control. 2015-09-19 17:30:33 +02:00
checkbox.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
checklst.h Addition of overrides in checklst.h and listbox.h 2015-11-22 10:12:58 +01:00
chkconf.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
choice.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
clipbrd.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
colordlg.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
colour.h
combobox.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
config_xcode.h Remove feature test for HAVE_EXPLICIT 2016-09-14 18:45:12 +09:00
control.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
cursor.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
dataform.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
dataobj2.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
dataobj.h Fix wxOSX warnings about int-to-void* casts. 2013-09-21 09:28:39 +00:00
dataview.h Make wxDataViewCtrl::Expand() expand ancestors in native ports too 2016-03-22 21:22:36 +01:00
datectrl.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
datetimectrl.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
dc.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
dcclient.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
dcmemory.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
dcprint.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
dcscreen.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
dialog.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
dirdlg.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
dnd.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
dvrenderer.h Addition of overrides in diverse headers 2015-11-22 10:16:01 +01:00
dvrenderers.h Add wxDataViewTextRenderer::EnableMarkup() 2016-06-16 00:06:23 +02:00
evtloop.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
evtloopsrc.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
filedlg.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
font.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
fontdlg.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
frame.h Display the global menu bar if the last TLW is hidden in wxOSX 2016-02-22 22:21:47 +01:00
fswatcher_fsevents.h Use FSEvents in wxFileSystemWatcher on OS X 2015-06-06 02:37:35 +04:00
gauge.h No changes, just remove redundant "inline" from wxOSX headers 2015-10-25 18:20:32 +01:00
glcanvas.h Remove remaining unused carbon implementation code. 2016-03-04 15:34:51 +01:00
icon.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
imaglist.h Added wxImageList::GetSize to retrieve the size originally passed 2015-12-13 19:17:40 +00:00
joystick.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
listbox.h Add wxListBox::GetTopItem() and GetCountPerPage() 2016-02-06 19:13:35 +01:00
listctrl.h Remove comments and declarations copy-pasted from wxMSW 2015-12-07 14:37:34 +01:00
mdi.h Addition of overrides in diverse headers 2015-11-22 10:16:01 +01:00
menu.h Display the global menu bar if the last TLW is hidden in wxOSX 2016-02-22 22:21:47 +01:00
menuitem.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
metafile.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
mimetype.h
minifram.h No changes, just remove redundant "inline" from wxOSX headers 2015-10-25 18:20:32 +01:00
msgdlg.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
nonownedwnd.h Rename HandleMiniaturize() to have OSX prefix and make it non-virtual. 2015-07-18 15:32:00 +02:00
notebook.h Addition of overrides in anybutton.h, collpaneg.h, notebook.h, spinctlg.h, srchctrl.h and radiobox.h 2015-11-22 10:15:41 +01:00
palette.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
pen.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
popupwin.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
printdlg.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
printmac.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
private.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
radiobox.h Addition of overrides in anybutton.h, collpaneg.h, notebook.h, spinctlg.h, srchctrl.h and radiobox.h 2015-11-22 10:15:41 +01:00
radiobut.h No changes, just remove redundant "inline" from wxOSX headers 2015-10-25 18:20:32 +01:00
region.h
scrolbar.h Addition of overrids in scrolbar.h, slider.h and vscroll.h 2015-11-22 10:14:29 +01:00
setup0.h Add wxSecretStore 2016-06-04 18:29:15 +02:00
slider.h Addition of overrids in scrolbar.h, slider.h and vscroll.h 2015-11-22 10:14:29 +01:00
sound.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
spinbutt.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
srchctrl.h Addition of overrides in anybutton.h, collpaneg.h, notebook.h, spinctlg.h, srchctrl.h and radiobox.h 2015-11-22 10:15:41 +01:00
statbmp.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
statbox.h No changes, just remove redundant "inline" from wxOSX headers 2015-10-25 18:20:32 +01:00
statline.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
stattext.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
statusbr.h Addition of missing overrides in statusbr.h and toolbar.h 2015-11-22 09:52:21 +01:00
taskbarosx.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
textctrl.h Addition of missing overrides in textctrl.h 2015-11-22 09:47:31 +01:00
textentry.h Add wxTextEntry::ForceUpper() 2015-12-08 03:02:46 +01:00
tglbtn.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
timectrl.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
toolbar.h Addition of missing overrides in statusbr.h and toolbar.h 2015-11-22 09:52:21 +01:00
tooltip.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
toplevel.h Addition of missing overrides in toplevel.h 2015-11-22 09:44:01 +01:00
uma.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00
webview_webkit.h Addition of overrides in diverse headers 2015-11-22 10:16:01 +01:00
webviewhistoryitem_webkit.h make sure platform constants exist by using defs.h instead of setup.h 2014-03-31 11:23:46 +00:00
window.h Remove wxOSX/Carbon support. 2016-02-01 13:48:48 +01:00