git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61380
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual bool OnInitGui();
#endif // wxUSE_GUI
virtual bool OnInitGui();
#endif // wxUSE_GUI
+#ifdef __WXOSX_IPHONE__
+ virtual int OnRun();
+#endif
+
virtual bool ProcessIdle();
// implementation only
virtual bool ProcessIdle();
// implementation only
+#if wxOSX_USE_COCOA_OR_CARBON
bool wxApp::CallOnInit()
{
wxMacAutoreleasePool autoreleasepool;
return OnInit();
}
bool wxApp::CallOnInit()
{
wxMacAutoreleasePool autoreleasepool;
return OnInit();
}
bool wxApp::OnInitGui()
{
bool wxApp::OnInitGui()
{
if ( traits & NSFontItalicTrait )
fontstyle = wxFONTSTYLE_ITALIC ;
*/
if ( traits & NSFontItalicTrait )
fontstyle = wxFONTSTYLE_ITALIC ;
*/
- wxCFStringRef fontname( [uifont familyName] );
+ wxCFStringRef fontname( wxCFRetain([uifont familyName]) );
info->Init(size,wxFONTFAMILY_DEFAULT,fontstyle,fontweight,underlined,
fontname.AsString(), wxFONTENCODING_DEFAULT);
info->Init(size,wxFONTFAMILY_DEFAULT,fontstyle,fontweight,underlined,
fontname.AsString(), wxFONTENCODING_DEFAULT);
// NSImage Utils
// ----------------------------------------------------------------------------
// NSImage Utils
// ----------------------------------------------------------------------------
+#if wxOSX_USE_IPHONE
+
+WX_UIImage wxOSXCreateUIImageFromCGImage( CGImageRef image )
+{
+ UIImage *newImage = [UIImage imageWithCGImage:image];
+ [newImage autorelease];
+ return( newImage );
+}
+
+#endif
+
#if wxOSX_USE_COCOA
// From "Cocoa Drawing Guide:Working with Images"
#if wxOSX_USE_COCOA
// From "Cocoa Drawing Guide:Working with Images"