]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/ctrlsub.h
added iosfwrap.h (wrapper for <iosfwd>)
[wxWidgets.git] / include / wx / ctrlsub.h
index 1db128f7bcb6b95ff01cdb8bb06c18785c630b41..93ed78cfdecb4287dd54a7a9dfa59c1ff3490a52 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _WX_CTRLSUB_H_BASE_
 #define _WX_CTRLSUB_H_BASE_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
     #pragma interface "controlwithitems.h"
 #endif
 
@@ -57,6 +57,8 @@ public:
     // -----------------
 
     virtual int GetCount() const = 0;
+    bool IsEmpty() const { return GetCount() == 0; }
+
     virtual wxString GetString(int n) const = 0;
     virtual void SetString(int n, const wxString& s) = 0;
     virtual int FindString(const wxString& s) const = 0;