From ab1dc15393dc7abc79aabec5d90d904cf8d0c34d Mon Sep 17 00:00:00 2001 From: ggsato Date: Thu, 24 May 2012 23:58:59 +0900 Subject: [PATCH] moved types declaration --- AppKit/CPApplication.j | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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];