X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/294d965baf0a694ac1e22f8a303089ca41cdd49f..63a3cd7a8c737eb4571f27e5f2af37eda0f1c5cc:/src/cocoa/notebook.mm?ds=sidebyside diff --git a/src/cocoa/notebook.mm b/src/cocoa/notebook.mm index 12863c1b90..d79c9bd875 100644 --- a/src/cocoa/notebook.mm +++ b/src/cocoa/notebook.mm @@ -64,6 +64,7 @@ - (void)dealloc { [m_image release]; + [super dealloc]; } - (NSSize)sizeOfLabel:(BOOL)shouldTruncateLabel @@ -202,7 +203,7 @@ bool wxNotebook::InsertPage( size_t pos, 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)]; @@ -250,7 +251,7 @@ int wxNotebook::GetPageImage(size_t nPage) const 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];