Пример #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));
        }
Пример #2
0
        /// <summary>
        /// Creates and returns an NSURL object initialized with a base URL and a relative string.
        /// </summary>
        /// <returns>The with string relative to UR.</returns>
        /// <param name="URLString">URL string.</param>
        /// <param name="baseURL">Base UR.</param>
        public static NSURL URLWithStringRelativeToURL(NSString URLString, NSURL baseURL)
        {
            if (URLString == null || baseURL == null)
            {
                return(null);
            }

            return(FromPointer(C.NSURL_URLWithStringRelativeToURL(URLString.ToPointer(), baseURL.ToPointer()), true));
        }
Пример #3
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())));
 }