#include <Sound.h>
#endif
+#if wxUSE_GUI
#if TARGET_API_MAC_OSX
#include <CoreServices/CoreServices.h>
#else
#include <ATSUnicode.h>
#include <TextCommon.h>
#include <TextEncodingConverter.h>
+#endif // wxUSE_GUI
#include "wx/mac/private.h" // includes mac headers
wxString strDir ;
if ( FSFindFolder( vol, folderType, createFolder, &fsRef) == noErr)
- strDir = wxMacFSRefToPath( &fsRef ) ;
+ strDir = wxMacFSRefToPath( &fsRef ) + wxFILE_SEP_PATH ;
return strDir ;
}
void wxMacControl::SetRect( Rect *r )
{
#if TARGET_API_MAC_OSX
- HIRect hir = { r->left , r->top , r->right - r->left , r->bottom - r->top } ;
+ //A HIRect is actually a CGRect on OSX - which consists of two structures -
+ //CGPoint and CGSize, which have two floats each
+ HIRect hir = { { r->left , r->top }, { r->right - r->left , r->bottom - r->top } } ;
HIViewSetFrame ( m_controlRef , &hir ) ;
#else
SetControlBounds( m_controlRef , r ) ;