mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 00:22:58 +00:00
Further movement to CFURL.
Reviewed by me.
This commit is contained in:
1 parent
8f08c33bcc
commit
20d117e129
2 files changed
+3
-5
No files matched your search
@@ -159,7 +159,7 @@ var CPBundlesForURLStrings = { };
|
||||
count = [staticResources count];
|
||||
|
||||
for (; index < count; ++index)
|
||||
[staticResourceURLs addObject:[CPURL URLWithString:staticResources[index].path()]];
|
||||
[staticResourceURLs addObject:staticResources[index].URL()];
|
||||
|
||||
return staticResourceURLs;
|
||||
}
|
||||
|
||||
@@ -90,10 +90,8 @@
|
||||
*/
|
||||
- (void)setURL:(CPURL)aURL
|
||||
{
|
||||
if ([aURL isKindOfClass:[CPURL class]])
|
||||
_URL = aURL;
|
||||
else
|
||||
_URL = [CPURL URLWithString:String(aURL)];
|
||||
// Lenient and accept strings.
|
||||
_URL = new CFURL(aURL);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in new issue
Block a user