org.rococoa.cocoa.foundation
Class NSURL

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.foundation.NSURL
All Implemented Interfaces:
NSCoding, NSCopying, NSObject, NSURLHandleClient, ObjCObject

public abstract class NSURL
extends NSObject
implements ObjCObject, NSCoding, NSCopying, NSURLHandleClient

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSURL._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
NSCoding._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
NSCopying._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSURLHandleClient
NSURLHandleClient._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSURL()
           
 
Method Summary
abstract  NSString absoluteString()
          Original signature : -(NSString*)absoluteString
native declaration : NSURL.h:61
abstract  NSURL absoluteURL()
          if the receiver is itself absolute, this will return self.
static NSURL alloc()
           
 NSURLLoading as_NSURL_NSURLLoading()
           
 NSURLPathUtilities as_NSURL_NSURLPathUtilities()
           
abstract  NSURL baseURL()
          may be nil.
static NSData bookmarkDataWithContentsOfURL_error(NSURL bookmarkFileURL, PointerByReference error)
          Given the url of a file which is a Finder "alias" file, return a NSData with the bookmark data from the file.
abstract  NSData bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error(NSUInteger options, NSArray keys, NSURL relativeURL, PointerByReference error)
          Create a NSData containing a externalizable representation from a given url, which can later be resolved or interrogated for properties
Original signature : -(NSData*)bookmarkDataWithOptions:(NSURLBookmarkCreationOptions) includingResourceValuesForKeys:(NSArray*) relativeToURL:(NSURL*) error:(NSError**)
native declaration : NSURL.h:129
abstract  boolean checkResourceIsReachableAndReturnError(PointerByReference error)
          Primitive for checking if the underlying resource exists and is reachable.
static NSURL createByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error(NSData bookmarkData, NSUInteger options, NSURL relativeURL, boolean isStale, PointerByReference error)
          Factory method
static NSURL createFileURLWithPath_isDirectory(NSString path, boolean isDir)
          Factory method
static NSURL createFileURLWithPath(NSString path)
          Factory method
static NSURL createWithScheme_host_path(NSString scheme, NSString host, NSString path)
          Factory method
static NSURL createWithString_relativeToURL(NSString URLString, NSURL baseURL)
          Factory method
static NSURL createWithString(NSString URLString)
          Factory method
abstract  NSURL filePathURL()
          For file URLs, returns a file path URL, converting if the receiver is a file reference URL.
abstract  NSURL fileReferenceURL()
          For file URLs, returns a file reference URL, converting if the receiver is file path URL.
static NSURL fileURLWithPath_isDirectory(NSString path, boolean isDir)
          Original signature : +(id)fileURLWithPath:(NSString*) isDirectory:(BOOL)
native declaration : NSURL.h:52
static NSURL fileURLWithPath(NSString path)
          Better to use fileURLWithPath:isDirectory: if you know if the path is a file vs directory, as it saves an i/o.
abstract  NSString fragment()
          Original signature : -(NSString*)fragment
native declaration : NSURL.h:76
static NSURL._class_ getNSClass()
           
abstract  boolean getResourceValue_forKey_error(ObjCObject value, NSString key, PointerByReference error)
          Fetch a resource value, with error reporting.
abstract  NSString host()
          If the URL conforms to rfc 1808 (the most common form of URL), the following accessors will return the various components; otherwise they return nil.
abstract  NSURL initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error(NSData bookmarkData, NSUInteger options, NSURL relativeURL, boolean isStale, PointerByReference error)
          Resolve bookmark data into a url; init and factory methods
Original signature : -(id)initByResolvingBookmarkData:(NSData*) options:(NSURLBookmarkResolutionOptions) relativeToURL:(NSURL*) bookmarkDataIsStale:(BOOL*) error:(NSError**)
native declaration : NSURL.h:132
abstract  NSURL initFileURLWithPath_isDirectory(NSString path, boolean isDir)
          Original signature : -(id)initFileURLWithPath:(NSString*) isDirectory:(BOOL)
native declaration : NSURL.h:49
abstract  NSURL initFileURLWithPath(NSString path)
          Better to use initFileURLWithPath:isDirectory: if you know if the path is a file vs directory, as it saves an i/o.
abstract  NSURL initWithScheme_host_path(NSString scheme, NSString host, NSString path)
          Convenience initializers
this call percent-encodes both the host and path, so this cannot be used to set a username/password or port in the hostname part or with a IPv6 '[...]' type address; use initWithString: and construct the string yourself in those cases
Original signature : -(id)initWithScheme:(NSString*) host:(NSString*) path:(NSString*)
native declaration : NSURL.h:47
abstract  NSURL initWithString_relativeToURL(NSString URLString, NSURL baseURL)
          It is an error for URLString to be nil
Original signature : -(id)initWithString:(NSString*) relativeToURL:(NSURL*)
native declaration : NSURL.h:57
abstract  NSURL initWithString(NSString URLString)
          These methods expect their string arguments to contain any percent escape codes that are necessary
Original signature : -(id)initWithString:(NSString*)
native declaration : NSURL.h:56
abstract  boolean isFileReferenceURL()
          Returns YES if the receiver is a file reference URL, a path-independent file URL form.
abstract  boolean isFileURL()
          Whether the scheme is file:; if [myURL isFileURL] is YES, then [myURL path] is suitable for input into NSFileManager or NSPathUtilities.
static NSURL new_()
           
abstract  NSString parameterString()
          Original signature : -(NSString*)parameterString
native declaration : NSURL.h:77
abstract  NSString password()
          Original signature : -(NSString*)password
native declaration : NSURL.h:74
abstract  NSString path()
          Original signature : -(NSString*)path
native declaration : NSURL.h:75
abstract  NSNumber port()
          Original signature : -(NSNumber*)port
native declaration : NSURL.h:72
abstract  NSString query()
          Original signature : -(NSString*)query
native declaration : NSURL.h:78
abstract  NSString relativePath()
          The same as path if baseURL is nil
Original signature : -(NSString*)relativePath
native declaration : NSURL.h:79
abstract  NSString relativeString()
          The relative portion of a URL.
abstract  NSString resourceSpecifier()
          Original signature : -(NSString*)resourceSpecifier
native declaration : NSURL.h:68
abstract  NSDictionary resourceValuesForKeys_error(NSArray keys, PointerByReference error)
          Returns multiple resource values as a dictionary.
static NSDictionary resourceValuesForKeys_fromBookmarkData(NSArray keys, NSData bookmarkData)
          Property access.
abstract  NSString scheme()
          Any URL is composed of these two basic pieces.
abstract  boolean setResourceValue_forKey_error(ObjCObject value, NSString key, PointerByReference error)
          Setting resource properties: The resource is modified synchronously.
abstract  boolean setResourceValues_error(NSDictionary keyedValues, PointerByReference error)
          Original signature : -(BOOL)setResourceValues:(NSDictionary*) error:(NSError**)
native declaration : NSURL.h:102
abstract  NSURL standardizedURL()
          Original signature : -(NSURL*)standardizedURL
native declaration : NSURL.h:83
static NSObject URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error(NSData bookmarkData, NSUInteger options, NSURL relativeURL, boolean isStale, PointerByReference error)
          Original signature : +(id)URLByResolvingBookmarkData:(NSData*) options:(NSURLBookmarkResolutionOptions) relativeToURL:(NSURL*) bookmarkDataIsStale:(BOOL*) error:(NSError**)
native declaration : NSURL.h:133
static NSObject URLWithString_relativeToURL(NSString URLString, NSURL baseURL)
          Original signature : +(id)URLWithString:(NSString*) relativeToURL:(NSURL*)
native declaration : NSURL.h:59
static NSObject URLWithString(NSString URLString)
          Original signature : +(id)URLWithString:(NSString*)
native declaration : NSURL.h:58
abstract  NSString user()
          Original signature : -(NSString*)user
native declaration : NSURL.h:73
static boolean writeBookmarkData_toURL_options_error(NSData bookmarkData, NSURL bookmarkFileURL, NSUInteger options, PointerByReference error)
          Create a bookmark file on disk at bookmarkFileURL which can be resolved back to the file system item represented by bookmarkData, using the given options.
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
encodeWithCoder, initWithCoder
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
copyWithZone
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSURLHandleClient
URLHandle_resourceDataDidBecomeAvailable, URLHandle_resourceDidFailLoadingWithReason, URLHandleResourceDidBeginLoading, URLHandleResourceDidCancelLoading, URLHandleResourceDidFinishLoading
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSURL

public NSURL()
Method Detail

as_NSURL_NSURLPathUtilities

public NSURLPathUtilities as_NSURL_NSURLPathUtilities()

as_NSURL_NSURLLoading

public NSURLLoading as_NSURL_NSURLLoading()

initWithScheme_host_path

public abstract NSURL initWithScheme_host_path(NSString scheme,
                                               NSString host,
                                               NSString path)
Convenience initializers
this call percent-encodes both the host and path, so this cannot be used to set a username/password or port in the hostname part or with a IPv6 '[...]' type address; use initWithString: and construct the string yourself in those cases
Original signature : -(id)initWithScheme:(NSString*) host:(NSString*) path:(NSString*)
native declaration : NSURL.h:47


createWithScheme_host_path

public static NSURL createWithScheme_host_path(NSString scheme,
                                               NSString host,
                                               NSString path)
Factory method

See Also:
initWithScheme_host_path(org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString)

initFileURLWithPath_isDirectory

public abstract NSURL initFileURLWithPath_isDirectory(NSString path,
                                                      boolean isDir)
Original signature : -(id)initFileURLWithPath:(NSString*) isDirectory:(BOOL)
native declaration : NSURL.h:49


createFileURLWithPath_isDirectory

public static NSURL createFileURLWithPath_isDirectory(NSString path,
                                                      boolean isDir)
Factory method

See Also:
initFileURLWithPath_isDirectory(org.rococoa.cocoa.foundation.NSString, boolean)

initFileURLWithPath

public abstract NSURL initFileURLWithPath(NSString path)
Better to use initFileURLWithPath:isDirectory: if you know if the path is a file vs directory, as it saves an i/o.
Original signature : -(id)initFileURLWithPath:(NSString*)
native declaration : NSURL.h:50


createFileURLWithPath

public static NSURL createFileURLWithPath(NSString path)
Factory method

See Also:
initFileURLWithPath(org.rococoa.cocoa.foundation.NSString)

fileURLWithPath_isDirectory

public static NSURL fileURLWithPath_isDirectory(NSString path,
                                                boolean isDir)
Original signature : +(id)fileURLWithPath:(NSString*) isDirectory:(BOOL)
native declaration : NSURL.h:52


fileURLWithPath

public static NSURL fileURLWithPath(NSString path)
Better to use fileURLWithPath:isDirectory: if you know if the path is a file vs directory, as it saves an i/o.
Original signature : +(id)fileURLWithPath:(NSString*)
native declaration : NSURL.h:53


initWithString

public abstract NSURL initWithString(NSString URLString)
These methods expect their string arguments to contain any percent escape codes that are necessary
Original signature : -(id)initWithString:(NSString*)
native declaration : NSURL.h:56


createWithString

public static NSURL createWithString(NSString URLString)
Factory method

See Also:
initWithString(org.rococoa.cocoa.foundation.NSString)

initWithString_relativeToURL

public abstract NSURL initWithString_relativeToURL(NSString URLString,
                                                   NSURL baseURL)
It is an error for URLString to be nil
Original signature : -(id)initWithString:(NSString*) relativeToURL:(NSURL*)
native declaration : NSURL.h:57


createWithString_relativeToURL

public static NSURL createWithString_relativeToURL(NSString URLString,
                                                   NSURL baseURL)
Factory method

See Also:
initWithString_relativeToURL(org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSURL)

URLWithString

public static NSObject URLWithString(NSString URLString)
Original signature : +(id)URLWithString:(NSString*)
native declaration : NSURL.h:58


URLWithString_relativeToURL

public static NSObject URLWithString_relativeToURL(NSString URLString,
                                                   NSURL baseURL)
Original signature : +(id)URLWithString:(NSString*) relativeToURL:(NSURL*)
native declaration : NSURL.h:59


absoluteString

public abstract NSString absoluteString()
Original signature : -(NSString*)absoluteString
native declaration : NSURL.h:61


relativeString

public abstract NSString relativeString()
The relative portion of a URL. If baseURL is nil, or if the receiver is itself absolute, this is the same as absoluteString
Original signature : -(NSString*)relativeString
native declaration : NSURL.h:62


baseURL

public abstract NSURL baseURL()
may be nil.
Original signature : -(NSURL*)baseURL
native declaration : NSURL.h:63


absoluteURL

public abstract NSURL absoluteURL()
if the receiver is itself absolute, this will return self.
Original signature : -(NSURL*)absoluteURL
native declaration : NSURL.h:64


scheme

public abstract NSString scheme()
Any URL is composed of these two basic pieces. The full URL would be the concatenation of [myURL scheme], ':', [myURL resourceSpecifier]
Original signature : -(NSString*)scheme
native declaration : NSURL.h:67


resourceSpecifier

public abstract NSString resourceSpecifier()
Original signature : -(NSString*)resourceSpecifier
native declaration : NSURL.h:68


host

public abstract NSString host()
If the URL conforms to rfc 1808 (the most common form of URL), the following accessors will return the various components; otherwise they return nil. The litmus test for conformance is as recommended in RFC 1808 - whether the first two characters of resourceSpecifier is @"//". In all cases, they return the component's value after resolving the receiver against its base URL.
Original signature : -(NSString*)host
native declaration : NSURL.h:71


port

public abstract NSNumber port()
Original signature : -(NSNumber*)port
native declaration : NSURL.h:72


user

public abstract NSString user()
Original signature : -(NSString*)user
native declaration : NSURL.h:73


password

public abstract NSString password()
Original signature : -(NSString*)password
native declaration : NSURL.h:74


path

public abstract NSString path()
Original signature : -(NSString*)path
native declaration : NSURL.h:75


fragment

public abstract NSString fragment()
Original signature : -(NSString*)fragment
native declaration : NSURL.h:76


parameterString

public abstract NSString parameterString()
Original signature : -(NSString*)parameterString
native declaration : NSURL.h:77


query

public abstract NSString query()
Original signature : -(NSString*)query
native declaration : NSURL.h:78


relativePath

public abstract NSString relativePath()
The same as path if baseURL is nil
Original signature : -(NSString*)relativePath
native declaration : NSURL.h:79


isFileURL

public abstract boolean isFileURL()
Whether the scheme is file:; if [myURL isFileURL] is YES, then [myURL path] is suitable for input into NSFileManager or NSPathUtilities.
Original signature : -(BOOL)isFileURL
native declaration : NSURL.h:81


standardizedURL

public abstract NSURL standardizedURL()
Original signature : -(NSURL*)standardizedURL
native declaration : NSURL.h:83


getResourceValue_forKey_error

public abstract boolean getResourceValue_forKey_error(ObjCObject value,
                                                      NSString key,
                                                      PointerByReference error)
Fetch a resource value, with error reporting. Sets the `value` output argument. The output value may be nil. Returns YES when the value is set. Returns NO when an error occurs and also sets the optional error result.
Original signature : -(BOOL)getResourceValue:(id*) forKey:(NSString*) error:(NSError**)
native declaration : NSURL.h:91


resourceValuesForKeys_error

public abstract NSDictionary resourceValuesForKeys_error(NSArray keys,
                                                         PointerByReference error)
Returns multiple resource values as a dictionary. On error, returns nil and sets the optional error result. When there is no value for a key, the key will be absent in the result dictionary.
Original signature : -(NSDictionary*)resourceValuesForKeys:(NSArray*) error:(NSError**)
native declaration : NSURL.h:96


setResourceValue_forKey_error

public abstract boolean setResourceValue_forKey_error(ObjCObject value,
                                                      NSString key,
                                                      PointerByReference error)
Setting resource properties: The resource is modified synchronously. Returns YES on success, NO on error. When setting multiple properties, partial failure may occur. Processing stops when any error occurs. The user info dictionary in the error result will contain an array of keys that were not set.
Original signature : -(BOOL)setResourceValue:(id) forKey:(NSString*) error:(NSError**)
native declaration : NSURL.h:101


setResourceValues_error

public abstract boolean setResourceValues_error(NSDictionary keyedValues,
                                                PointerByReference error)
Original signature : -(BOOL)setResourceValues:(NSDictionary*) error:(NSError**)
native declaration : NSURL.h:102


checkResourceIsReachableAndReturnError

public abstract boolean checkResourceIsReachableAndReturnError(PointerByReference error)
Primitive for checking if the underlying resource exists and is reachable. Returns YES when the resource can be accessed. When the return value is NO, the optional error result indicates the reason for failure. Note: Checking reachability is appropriate when making decisions that do not require other immediate operations on the resource, e.g. periodic maintenance of UI state that depends on the existence of a specific document. When performing operations such as opening a file, it is more efficient to simply try the operation and handle failures. This method is currently applicable only to URLs for file system resources. For other URL types, returns NO.
Original signature : -(BOOL)checkResourceIsReachableAndReturnError:(NSError**)
native declaration : NSURL.h:107


isFileReferenceURL

public abstract boolean isFileReferenceURL()
Returns YES if the receiver is a file reference URL, a path-independent file URL form. Returns NO for file path URLs or non-file URL schemes.
Original signature : -(BOOL)isFileReferenceURL
native declaration : NSURL.h:115


fileReferenceURL

public abstract NSURL fileReferenceURL()
For file URLs, returns a file reference URL, converting if the receiver is file path URL. For other URL schemes, returns nil.
Original signature : -(NSURL*)fileReferenceURL
native declaration : NSURL.h:119


filePathURL

public abstract NSURL filePathURL()
For file URLs, returns a file path URL, converting if the receiver is a file reference URL. For other URL schemes, returns nil.
Original signature : -(NSURL*)filePathURL
native declaration : NSURL.h:123


bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error

public abstract NSData bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error(NSUInteger options,
                                                                                                  NSArray keys,
                                                                                                  NSURL relativeURL,
                                                                                                  PointerByReference error)
Create a NSData containing a externalizable representation from a given url, which can later be resolved or interrogated for properties
Original signature : -(NSData*)bookmarkDataWithOptions:(NSURLBookmarkCreationOptions) includingResourceValuesForKeys:(NSArray*) relativeToURL:(NSURL*) error:(NSError**)
native declaration : NSURL.h:129


initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error

public abstract NSURL initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error(NSData bookmarkData,
                                                                                                  NSUInteger options,
                                                                                                  NSURL relativeURL,
                                                                                                  boolean isStale,
                                                                                                  PointerByReference error)
Resolve bookmark data into a url; init and factory methods
Original signature : -(id)initByResolvingBookmarkData:(NSData*) options:(NSURLBookmarkResolutionOptions) relativeToURL:(NSURL*) bookmarkDataIsStale:(BOOL*) error:(NSError**)
native declaration : NSURL.h:132


createByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error

public static NSURL createByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error(NSData bookmarkData,
                                                                                                  NSUInteger options,
                                                                                                  NSURL relativeURL,
                                                                                                  boolean isStale,
                                                                                                  PointerByReference error)
Factory method

See Also:
initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error(org.rococoa.cocoa.foundation.NSData, org.rococoa.cocoa.foundation.NSUInteger, org.rococoa.cocoa.foundation.NSURL, boolean, com.sun.jna.ptr.PointerByReference)

URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error

public static NSObject URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error(NSData bookmarkData,
                                                                                                  NSUInteger options,
                                                                                                  NSURL relativeURL,
                                                                                                  boolean isStale,
                                                                                                  PointerByReference error)
Original signature : +(id)URLByResolvingBookmarkData:(NSData*) options:(NSURLBookmarkResolutionOptions) relativeToURL:(NSURL*) bookmarkDataIsStale:(BOOL*) error:(NSError**)
native declaration : NSURL.h:133


resourceValuesForKeys_fromBookmarkData

public static NSDictionary resourceValuesForKeys_fromBookmarkData(NSArray keys,
                                                                  NSData bookmarkData)
Property access. Given a NSData* created with bookmarkDataWithOptions, return a given property or all of the properties in bookmark data
Original signature : +(NSDictionary*)resourceValuesForKeys:(NSArray*) fromBookmarkData:(NSData*)
native declaration : NSURL.h:136


writeBookmarkData_toURL_options_error

public static boolean writeBookmarkData_toURL_options_error(NSData bookmarkData,
                                                            NSURL bookmarkFileURL,
                                                            NSUInteger options,
                                                            PointerByReference error)
Create a bookmark file on disk at bookmarkFileURL which can be resolved back to the file system item represented by bookmarkData, using the given options. If relativeToURL is non-NULL, create a relative url. The bookmark data must have been created with the NSURLBookmarkCreationSuitableForBookmarkFile flag or this routine will fail. If bookmarkFileURL is a directory then the file will be created in that directory with the name of the item represented by the bookmarkData with ".alias" appended. If bookmarkFileURL is a file url then its extension will be changed to ".alias", if not present.
Original signature : +(BOOL)writeBookmarkData:(NSData*) toURL:(NSURL*) options:(NSURLBookmarkFileCreationOptions) error:(NSError**)
native declaration : NSURL.h:140


bookmarkDataWithContentsOfURL_error

public static NSData bookmarkDataWithContentsOfURL_error(NSURL bookmarkFileURL,
                                                         PointerByReference error)
Given the url of a file which is a Finder "alias" file, return a NSData with the bookmark data from the file. If bookmarkFileURL points to an alias file created before SnowLeopard which contains Alias Manager information and no bookmark data, then a NSData will be synthesized which contains a approximation of the alias information in a format which can be used to resolve the bookmark. If an error prevents reading the data or if it is corrupt, NULL will be returned and error will be filled in if errorRef is non-NULL.
Original signature : +(NSData*)bookmarkDataWithContentsOfURL:(NSURL*) error:(NSError**)
native declaration : NSURL.h:144


alloc

public static NSURL alloc()

new_

public static NSURL new_()

getNSClass

public static NSURL._class_ getNSClass()


Copyright © 2009. All Rights Reserved.