- (void)dealloc
{
[m_image release];
+ [super dealloc];
}
- (NSSize)sizeOfLabel:(BOOL)shouldTruncateLabel
[tvitem retain];
[GetNSTabView() removeTabViewItem:tvitem];
// Remove the child window as a notebook page
- wxASSERT([tvitem view] == page->GetNSViewForSuperview());
+ wxASSERT(static_cast<NSView*>([tvitem view]) == page->GetNSViewForSuperview());
[tvitem setView:nil];
[tvitem release];
// Make it back into a normal child window
m_pages.Insert(page,pos);
NSTabViewItem *tvitem = [[WXCTabViewImageItem alloc] initWithIdentifier:nil];
[tvitem setLabel: wxNSStringWithWxString(title)];
- const wxBitmap *bmp = (imageId!=-1)?m_imageList->GetBitmap(imageId):NULL;
+ const wxBitmap *bmp = (imageId!=-1)?m_imageList->GetBitmapPtr(imageId):NULL;
if(bmp)
[(WXCTabViewImageItem*) tvitem setImage: bmp->GetNSImage(true)];
bool wxNotebook::SetPageImage(size_t nPage, int nImage)
{
- const wxBitmap *bmp = nImage!=-1?m_imageList->GetBitmap(nImage):NULL;
+ const wxBitmap *bmp = nImage!=-1?m_imageList->GetBitmapPtr(nImage):NULL;
if(!bmp)
return false;
NSTabViewItem *tvitem = [GetNSTabView() tabViewItemAtIndex: nPage];