--- /dev/null
+///////////////////////////////////////////////////////////////////////////////
+// Name: osx/private/objcid.h
+// Purpose: Define wxObjCID working in both C++ and Objective-C.
+// Author: Vadim Zeitlin
+// Created: 2012-05-20
+// RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
+// Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_OSX_PRIVATE_OBJCID_H_
+#define _WX_OSX_PRIVATE_OBJCID_H_
+
+// ----------------------------------------------------------------------------
+// wxObjCID: Equivalent of Objective-C "id" that works in C++ code.
+// ----------------------------------------------------------------------------
+
+#ifdef __OBJC__
+ #define wxObjCID id
+#else
+ typedef struct objc_object* wxObjCID;
+#endif
+
+#endif // _WX_OSX_PRIVATE_OBJCID_H_
#include "wx/control.h"
#include "wx/webview.h"
+#include "wx/osx/private/objcid.h"
+
// ----------------------------------------------------------------------------
// Web Kit Control
// ----------------------------------------------------------------------------
wxWindowID m_windowID;
wxString m_pageTitle;
- struct objc_object *m_webView;
+ wxObjCID m_webView;
// we may use this later to setup our own mouse events,
// so leave it in for now.
#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
|| defined(__WXOSX_CARBON__))
+#include "wx/osx/private/objcid.h"
+
class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
{
public:
private:
wxString m_url, m_title;
- struct objc_object *m_histItem;
+ wxObjCID m_histItem;
};
#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT