adding getURL hook

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2013-10-07 11:23:12 +00:00
parent c902d81d44
commit 36656b6ce2

View File

@ -119,7 +119,10 @@ void wxBell()
wxUnusedVar(replyEvent);
NSString* url = [[event descriptorAtIndex:1] stringValue];
wxCFStringRef cf(wxCFRetain(url));
wxTheApp->MacOpenURL(cf.AsString()) ;
if ( wxTheApp->OSXInitWasCalled() )
wxTheApp->MacOpenURL(cf.AsString()) ;
else
wxTheApp->OSXStoreOpenURL(cf.AsString());
}
- (void)handleOpenAppEvent:(NSAppleEventDescriptor *)event