Example #1
0
        /// <summary>
        /// Files the URL with path relative to UR.
        /// </summary>
        /// <returns>The URL with path relative to UR.</returns>
        /// <param name="path">Path.</param>
        /// <param name="isDirectory">If set to <c>true</c> is directory.</param>
        /// <param name="baseURL">Base UR.</param>
        public static NSURL FileURLWithPathRelativeToURL(NSString path, bool isDirectory, NSURL baseURL)
        {
            if (path == null || baseURL == null)
            {
                return(null);
            }

            return(FromPointer(C.NSURL_fileURLWithPathIsDirectoryRelativeToURL(path.ToPointer(), isDirectory, baseURL.ToPointer()), true));
        }
Example #2
0
 /// <summary>
 /// Creates a data object containing the data from the location specified by a given URL.
 /// </summary>
 /// <returns>The with contents of UR.</returns>
 /// <param name="url">URL.</param>
 public static NSData DataWithContentsOfURL(NSURL url)
 {
     return(url == null ? null : FromPointer(C.NSData_dataWithContentsOfURL(url.ToPointer())));
 }