Under wxWidgets 3.1.2, I am finding that icons inside .icns no longer load. Here's some sample code:
Code: Select all
wxString imagepath("/System/Library/Extensions/IOStorageFamily.kext/Contents/Resources/Internal.icns");
for(int i=wxBITMAP_TYPE_BMP;i<wxBITMAP_TYPE_MAX;++i)
{
wxIcon icon;
if(icon.LoadFile(imagepath, (wxBitmapType)i, 50,50))
{
::wxMessageBox("HURRAY!");
}
}
But this no longer works under 3.1.2 using Cocoa. What can I do to actually force it to load using ReadIconFromFSRef ? Which wxBitmapType should I use?