56 var result =
new CFURL();
57 result.isa = [
self class];
68 var URLString = (aScheme ? aScheme +
":" :
"") + (aHost ? aHost +
"//" :
"") + (aPath ||
"");
80 return [[
self alloc] initWithString:URLString];
85 var result =
new CFURL(URLString, aBaseURL);
86 result.isa = [
self class];
107 return self.absoluteString();
121 - (CPArray)pathComponents
124 return [components copy];
135 return self.scheme();
157 if (portNumber === -1)
165 return self.queryString();
170 return self.fragment();
175 if (
self === anObject)
178 if (!anObject || ![anObject isKindOfClass:[
CPURL class]])
184 - (BOOL)isEqualToURL:(
id)aURL
203 - (
CPURL)URLByDeletingLastPathComponent
205 var result =
self.createCopyDeletingLastPathComponent();
206 result.isa = [
self class];
217 return [
self scheme] ===
"file";
227 return self.resourcePropertyForKey(aKey);
230 - (id)setResourceValue:(
id)anObject forKey:(
CPString)aKey
232 return self.setResourcePropertyForKey(aKey, anObject);
237 return self.staticResourceData();
249 return [
self initWithString:[aCoder decodeObjectForKey:CPURLURLStringKey]
255 [aCoder encodeObject:self._baseURL forKey:CPURLBaseURLKey];
256 [aCoder encodeObject:self._string forKey:CPURLURLStringKey];
CPURLHasHiddenExtensionKey
CPURLAttributeModificationDateKey
A Cappuccino wrapper for any data type.
id initWithString:(CPString URLString)
BOOL isEqualToURL:(id aURL)
CPURLLocalizedTypeDescriptionKey
An immutable string (collection of characters).
CPString absoluteString()
CPURLContentModificationDateKey
CPURLContentAccessDateKey
CPString lastPathComponent()
Defines methods for use when archiving & restoring (enc/decoding).
CPURLParentDirectoryURLKey
CPURLIsSystemImmutableKey
BOOL isEqual:(id anObject)
id initWithString:relativeToURL:(CPString URLString, [relativeToURL] CPURL aBaseURL)
FrameUpdater prototype description