moved types declaration

This commit is contained in:
ggsato committed 2012-05-24 23:58:59 +09:00
1 parent 3a750591bb
commit ab1dc15393
1 file changed
+4 -4
+4 -4
View File
@@ -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];