NSURL(KSTExtensions)

@interface NSURL (KSTExtensions)

/**
 Returns the value associated with the NSURLCreationDateKey key.
 
 @return The associated creation date
 */
@property (readonly,nonatomic,nullable) NSDate *KST_creationDate;
/**
 Returns the value associated with the NSURLContentModificationDateKey key.
 
 @return The associated content modification date
 */
@property (readonly,nonatomic,nullable) NSDate *KST_contentModificationDate;
/**
 Returns the value associated with the NSURLIsDirectoryKey key.
 
 @return The associated isDirectory value
 */
@property (readonly,nonatomic) BOOL KST_isDirectory;
/**
 Returns the value associated with the NSURLTypeIdentifierKey key.
 
 @return The associated type identifier
 */
@property (readonly,nonatomic,nullable) NSString *KST_typeIdentifier;

/**
 Creates and returns a dictionary with query keys mapping to query values.
 
 @return The query dictionary
 */
- (nullable NSDictionary *)KST_queryDictionary;

/**
 Create and return an NSURL with *baseString* and optional query *parameters*.
 
 @param baseString The base string of the NSURL
 @param parameters Optional parameters dictionary
 @return The NSURL created from *baseString* and *parameters*
 */
+ (nullable NSURL *)KST_URLWithBaseString:(NSString *)baseString parameters:(nullable NSDictionary *)parameters;

@end

Undocumented

  • Returns the value associated with the NSURLCreationDateKey key.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *KST_creationDate;

    Return Value

    The associated creation date

  • Returns the value associated with the NSURLContentModificationDateKey key.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *KST_contentModificationDate;

    Return Value

    The associated content modification date

  • Returns the value associated with the NSURLIsDirectoryKey key.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL KST_isDirectory;

    Return Value

    The associated isDirectory value

  • Returns the value associated with the NSURLTypeIdentifierKey key.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *KST_typeIdentifier;

    Return Value

    The associated type identifier

  • Creates and returns a dictionary with query keys mapping to query values.

    Declaration

    Objective-C

    - (nullable NSDictionary *)KST_queryDictionary;

    Return Value

    The query dictionary

  • Create and return an NSURL with baseString and optional query parameters.

    Declaration

    Objective-C

    + (nullable NSURL *)KST_URLWithBaseString:(nonnull NSString *)baseString
                                   parameters:(nullable NSDictionary *)parameters;

    Parameters

    baseString

    The base string of the NSURL

    parameters

    Optional parameters dictionary

    Return Value

    The NSURL created from baseString and parameters