// Created: 2003/08/11
// RCS-ID: $Id$
// Copyright: (c) 2003 David Elliott
-// Licence: wxWindows licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
+
+#include "wx/icon.h"
+
#ifndef WX_PRECOMP
- #include "wx/icon.h"
#endif //WX_PRECOMP
+
#include "wx/bitmap.h"
#include "wx/cocoa/autorelease.h"
wxIconRefData::wxIconRefData()
{
- m_ok = FALSE;
+ m_ok = false;
m_width = 0;
m_height = 0;
m_depth = 0;
wxIconRefData::~wxIconRefData()
{
+ wxAutoNSAutoreleasePool pool;
[m_cocoaNSImage release];
m_cocoaNSImage = NULL;
}
M_ICONDATA->m_numColors = 0;
M_ICONDATA->m_quality = 0;
- return FALSE;
+ return false;
}
void wxIcon::CopyFromBitmap(const wxBitmap& bitmap)
return nil;
return M_ICONDATA->m_cocoaNSImage;
}
-