mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-17 14:01:18 +00:00
Fix for **** type in DocumentController, and an Info.plist bug in bundle tasks.
This commit is contained in:
1 parent
29785e21cd
commit
2d5aef6157
2 files changed
+15
-4
No files matched your search
@@ -276,7 +276,8 @@ var CPSharedDocumentController = nil;
|
||||
var index = 0,
|
||||
count = _documentTypes.length,
|
||||
|
||||
extension = [[anAbsoluteURL pathExtension] lowercaseString];
|
||||
extension = [[anAbsoluteURL pathExtension] lowercaseString],
|
||||
starType = nil;
|
||||
|
||||
for (; index < count; ++index)
|
||||
{
|
||||
@@ -286,12 +287,17 @@ var CPSharedDocumentController = nil;
|
||||
extensionCount = extensions.length;
|
||||
|
||||
for (; extensionIndex < extensionCount; ++extensionIndex)
|
||||
if ([extensions[extensionIndex] lowercaseString] === extension)
|
||||
{
|
||||
var thisExtension = [extensions[extensionIndex] lowercaseString];
|
||||
if (thisExtension === extension)
|
||||
return [documentType objectForKey:@"CPBundleTypeName"];
|
||||
|
||||
if (thisExtension === "****")
|
||||
starType = [documentType objectForKey:@"CPBundleTypeName"];
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME?
|
||||
return [self defaultType];//nil;
|
||||
return starType || [self defaultType];
|
||||
}
|
||||
|
||||
// Managing Document Types
|
||||
|
||||
Reference in new issue
Block a user