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:
@@ -119,7 +119,10 @@ void wxBell()
|
|||||||
wxUnusedVar(replyEvent);
|
wxUnusedVar(replyEvent);
|
||||||
NSString* url = [[event descriptorAtIndex:1] stringValue];
|
NSString* url = [[event descriptorAtIndex:1] stringValue];
|
||||||
wxCFStringRef cf(wxCFRetain(url));
|
wxCFStringRef cf(wxCFRetain(url));
|
||||||
wxTheApp->MacOpenURL(cf.AsString()) ;
|
if ( wxTheApp->OSXInitWasCalled() )
|
||||||
|
wxTheApp->MacOpenURL(cf.AsString()) ;
|
||||||
|
else
|
||||||
|
wxTheApp->OSXStoreOpenURL(cf.AsString());
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)handleOpenAppEvent:(NSAppleEventDescriptor *)event
|
- (void)handleOpenAppEvent:(NSAppleEventDescriptor *)event
|
||||||
|
Reference in New Issue
Block a user