diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j index 6a43b91dd..2e39c2c20 100644 --- a/AppKit/CPApplication.j +++ b/AppKit/CPApplication.j @@ -224,10 +224,8 @@ CPRunContinuesResponse = -1002; // We also want to set the default cursor on the body, so that buttons and things don't have an iBeam [[CPCursor arrowCursor] set]; - var bundle = [CPBundle mainBundle]; - - var delegateClassName = [bundle objectForInfoDictionaryKey:@"CPApplicationDelegateClass"], - types = [bundle objectForInfoDictionaryKey:@"CPBundleDocumentTypes"]; + var bundle = [CPBundle mainBundle], + delegateClassName = [bundle objectForInfoDictionaryKey:@"CPApplicationDelegateClass"]; if (delegateClassName) { @@ -245,6 +243,8 @@ CPRunContinuesResponse = -1002; postNotificationName:CPApplicationWillFinishLaunchingNotification object:self]; + var types = [bundle objectForInfoDictionaryKey:@"CPBundleDocumentTypes"]; + if ([types count] > 0) _documentController = [CPDocumentController sharedDocumentController];