]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/statbmp.mm
synthesize NM_RCLICK ourselves now that def window proc doesn't do it as we don't...
[wxWidgets.git] / src / cocoa / statbmp.mm
index 050ab2e0412b3d4cfa54b8906a229c80426eb68c..10c5ec1ebeccf2833b9d62c3acff83a53dfbaed6 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     2003/02/15
 // RCS-ID:      $Id: 
 // Copyright:   (c) 2003 David Elliott
-// Licence:    wxWindows license
+// Licence:    wxWidgets licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wxprec.h"
@@ -14,6 +14,7 @@
     #include "wx/app.h"
     #include "wx/statbmp.h"
 #endif //WX_PRECOMP
+#include "wx/cocoa/autorelease.h"
 
 #import <AppKit/NSImageView.h>
 
@@ -29,6 +30,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID winid,
            long style,
            const wxString& name)
 {
+    wxAutoNSAutoreleasePool pool;
     if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
         return false;
     m_cocoaNSView = NULL;