- appendmenu( m_macPopUpMenuHandle , item ) ;
- m_noStrings ++;
- SetControlMaximum( m_macControl , m_noStrings) ;
+ Str255 label;
+ wxMenuItem::MacBuildMenuString( label , NULL , NULL , item ,false);
+ AppendMenu( m_macPopUpMenuHandle , label ) ;
+ m_strings.Add( item ) ;
+ m_dataArray.Add( NULL );
+ return m_strings.Count() ;
+}
+
+void *wxChoice::DoGetItemClientData(int N) const
+{
+ return (void *)m_dataArray[N];
+}
+
+void wxChoice::DoSetItemClientData( int N, void* Client_data )
+{
+ wxASSERT_MSG( m_dataArray.GetCount() >= N , "invalid client_data array" ) ;
+
+ if ( m_dataArray.GetCount() > N )
+ {
+ m_dataArray[N] = (char*) Client_data ;
+ }
+ else
+ {
+ m_dataArray.Add( (char*) Client_data ) ;
+ }
+}
+
+void wxChoice::DoSetItemClientObject( int n, wxClientData* clientData )
+{
+ DoSetItemClientData(n, clientData);
+}
+
+wxClientData* wxChoice::DoGetItemClientObject( int N ) const
+{
+ return (wxClientData *) DoGetItemClientData( N ) ;