This is driving me crazy, I have looked at the Resources of other apps and notice tiff's being used.
My basic code is:
Code: Select all
// .xpm format
if (!_systemTray->SetIcon(wxICON(tray_icon), "Today's tasks."))
{
// Deal with error
}
// .tiff format
wxIcon icon(_("tray_icon"), wxBITMAP_TYPE_TIFF);
if (!_systemTray->SetIcon(icon, "Today's tasks."))
{
// Deal with error
}
Code: Select all
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000058
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x58:
-->
__TEXT 00000001091da000-000000010925d000 [ 524K] r-x/rwx SM=COW /Volumes/VOLUME/*/ChronoGraff.app/Contents/MacOS/ChronoGraff
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libwx_osx_cocoau_core-3.1.dylib 0x0000000109578bb3[b] wxBitmap::GetNSImage() const + 51[/b]
1 libwx_osx_cocoau_adv-3.1.dylib 0x0000000109a87ead wxTaskBarIconCustomStatusItemImpl::SetIcon(wxIcon const&, wxString const&) + 429
I have NO idea how to use a tiff instead of xpm, or in fact load a taskbaricon of another format other than xpm. It's a real pain at the moment, this is a kind of last resort posting here as I have spent a few days trying all manner of solutions to no avail.
Can anyone help? Thanks in advance