mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Further movement to CFURL.
Reviewed by me.
This commit is contained in:
@@ -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