wxWidgets/include/wx/osx
Vadim Zeitlin 3fc74d5a0f Fix wxColour(NSColor) ctor and use it in wxOSX code
wxColour ctor from NSColor added in b478f24288
didn't work correctly as it didn't initialize wxColour::m_cgColour and so any
attempts to use the colour created by it resulted in an immediate crash (so
the code added in 16671f229a likely didn't work
neither).

It also assumed that the NSColor given to it was always in the RGBA colorspace
and crashed if it wasn't (so 56ebe6dfac fixed
compilation at the price of making the code crash at run-time). Now explicitly
request the RGBA colorspace and leave the colour uninitialized, which is
better than crashing, if it can't be obtained.

After making this ctor safe to use, there is no reason to reproduce its logic
in wxColourDialog and wxFontDialog, so just use it from there.

Also make the ctor explicit as it's a non-trivial operation which shouldn't be
performed implicitly and document that it doesn't take ownership of NSColor,
unlike the similar ctor from CGColorRef.
2015-11-26 23:57:29 +01:00
..
carbon Fix wxOSX/Carbon build after Enable{Max,Min}imizeButton() addition 2015-11-08 18:42:12 +04:00
cocoa Addition of missing overrides in private.h 2015-11-22 09:50:27 +01:00
core Fix wxColour(NSColor) ctor and use it in wxOSX code 2015-11-26 23:57:29 +01:00
iphone Fix wxiOS build after Enable{Max,Min}imizeButton() addition 2015-09-07 12:47:38 +02:00
private Deal with remaining cvs/svn keywords. 2015-04-09 03:32:23 +04: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 Addition of missing overrides to app.h 2015-11-22 09:27:37 +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 support for 64 bit ios 2014-07-06 10:33:22 +00: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 Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
config_xcode.h Updated links and mailing list addresses. 2015-10-30 20:06:09 -06: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
dataobj2.h
dataobj.h Fix wxOSX warnings about int-to-void* casts. 2013-09-21 09:28:39 +00:00
dataview.h Addition of missing overrides to dataview.h 2015-11-22 09:42:01 +01:00
datectrl.h
datetimectrl.h
dc.h
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
dvrenderer.h Addition of overrides in diverse headers 2015-11-22 10:16:01 +01:00
dvrenderers.h Use wxDataViewRenderer::PrepareForItem() in all ports 2015-08-31 22:20:33 +02:00
evtloop.h removing overridden ProcessIdle, reverting that part of r75289 2015-01-10 09:13:50 +00:00
evtloopsrc.h
filedlg.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
font.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
fontdlg.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
frame.h Addition of missing overrides to frame.h 2015-11-22 09:36:45 +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 Addition of missing overrides in glcanvas.h 2015-11-22 09:44:15 +01:00
icon.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
imaglist.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
joystick.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
listbox.h Addition of overrides in checklst.h and listbox.h 2015-11-22 10:12:58 +01:00
listctrl.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
mdi.h Addition of overrides in diverse headers 2015-11-22 10:16:01 +01:00
menu.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04: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
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 wxActivityIndicator control. 2015-03-20 00:08:37 +01:00
slider.h Addition of overrids in scrolbar.h, slider.h and vscroll.h 2015-11-22 10:14:29 +01:00
sound.h Don't use timer inside wxSound in wxOSX/Cocoa. 2014-04-12 22:56:17 +00: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
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 Merge the changes from 3.0 branch. 2013-11-12 18:06:37 +00:00
tglbtn.h Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
timectrl.h
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
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 Addition of missing overrides in window.h 2015-11-22 09:34:47 +01:00