// Created: 2004/04/08
// RCS-ID: $Id$
// Copyright: (c) 2004 David Elliott
-// Licence: wxWindows licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
+
+#if wxUSE_NOTEBOOK
+
#ifndef WX_PRECOMP
#include "wx/app.h"
- #include "wx/notebook.h"
#endif //WX_PRECOMP
+#include "wx/notebook.h"
#include "wx/imaglist.h"
#include "wx/cocoa/autorelease.h"
int wxNotebook::SetSelection(size_t nPage)
{
+ wxAutoNSAutoreleasePool pool;
[GetNSTabView() selectTabViewItemAtIndex:nPage];
return GetSelection();
}
return !GetEventHandler()->ProcessEvent(event) || event.IsAllowed();
}
+#endif // wxUSE_NOTEBOOK