const size_t count = [fileNames count];
for (i = 0; i < count; i++)
{
- fileList.Add( wxCFStringRef::AsString([fileNames objectAtIndex:i]) );
+ fileList.Add( wxCFStringRef::AsStringWithNormalizationFormC([fileNames objectAtIndex:i]) );
}
wxTheApp->MacOpenFiles(fileList);
@end
-wxNSAppController* appcontroller = nil;
+WX_NSObject appcontroller = nil;
NSLayoutManager* gNSLayoutManager = nil;
+WX_NSObject wxApp::OSXCreateAppController()
+{
+ return [[wxNSAppController alloc] init];
+}
bool wxApp::DoInitGui()
{
{
[wxNSApplication sharedApplication];
- appcontroller = [[wxNSAppController alloc] init];
+ appcontroller = OSXCreateAppController();
[NSApp setDelegate:appcontroller];
// calling finishLaunching so early before running the loop seems to trigger some 'MenuManager compatibility' which leads