wxString wxGetOsDescription()
{
- char data[128];
struct utsname name;
uname(&name);
- sprintf(data, "Mac OS X (%s %s %s)", name.sysname, name.release, name.machine);
- return wxString(data, wxConvUTF8);
+ return wxString::Format(_T("Mac OS X (%s %s %s)"),
+ wxString::FromAscii(name.sysname).c_str(),
+ wxString::FromAscii(name.release).c_str(),
+ wxString::FromAscii(name.machine).c_str());
}
#ifndef __DARWIN__
WindowRef tlwref = GetControlOwner( m_controlRef ) ;
- wxTopLevelWindowMac* tlwwx = wxFindWinFromMacWindow( tlwref ) ;
+ wxNonOwnedWindow* tlwwx = wxFindWinFromMacWindow( tlwref ) ;
if ( tlwwx != NULL )
{
ControlRef rootControl = tlwwx->GetPeer()->GetControlRef() ;
{
DataBrowserTableViewRowIndex row;
OSStatus err = GetItemRow( (DataBrowserItemID) item , &row);
- wxASSERT( err == noErr);
+ wxCHECK( err == noErr, (unsigned)-1 );
return row;
}
{
DataBrowserItemID id;
OSStatus err = GetItemID( (DataBrowserTableViewRowIndex) n , &id);
- wxASSERT( err == noErr);
+ wxCHECK( err == noErr, NULL );
return (wxMacDataItem*) id;
}