Exemplo n.º 1
0
		void Convert (EtoSpecialFolder folder, out NSSearchPathDirectory dir, out NSSearchPathDomain domain)
		{
			switch (folder) {
			case EtoSpecialFolder.ApplicationSettings:
				dir = NSSearchPathDirectory.ApplicationSupportDirectory;
				domain = NSSearchPathDomain.User;
				break;
			case EtoSpecialFolder.Documents:
				dir = NSSearchPathDirectory.DocumentDirectory;
				domain = NSSearchPathDomain.User;
				break;
			default:
				throw new NotSupportedException ();
			}
		}
Exemplo n.º 2
0
        void Convert(EtoSpecialFolder folder, out NSSearchPathDirectory dir, out NSSearchPathDomain domain)
        {
            switch (folder)
            {
            case EtoSpecialFolder.ApplicationSettings:
                dir    = NSSearchPathDirectory.ApplicationSupportDirectory;
                domain = NSSearchPathDomain.User;
                break;

            case EtoSpecialFolder.Documents:
                dir    = NSSearchPathDirectory.DocumentDirectory;
                domain = NSSearchPathDomain.User;
                break;

            default:
                throw new NotSupportedException();
            }
        }
Exemplo n.º 3
0
 public static string[] GetDirectories(NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde = true)
 {
     return(NSArray.StringArrayFromHandle(NSSearchPathForDirectoriesInDomains((nuint)(ulong)directory, (nuint)(ulong)domainMask, expandTilde)));
 }
Exemplo n.º 4
0
 public static string[] GetDirectories(NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde = true)
 {
     return NSArray.StringArrayFromHandle (NSSearchPathForDirectoriesInDomains ((nuint)(ulong)directory, (nuint)(ulong)domainMask, expandTilde));
 }
Exemplo n.º 5
0
        public static string[] GetDirectories(NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde)
        {
            IntPtr values = NSSearchPathForDirectoriesInDomains(directory, domainMask, expandTilde);

            return(NSArray.StringArrayFromHandle(values));
        }
Exemplo n.º 6
0
 extern static IntPtr  NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde);
Exemplo n.º 7
0
		static extern IntPtr NSSearchPathForDirectoriesInDomains (NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde);
Exemplo n.º 8
0
		public static string[] GetDirectories (NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde)
		{
			IntPtr values = NSSearchPathForDirectoriesInDomains(directory, domainMask, expandTilde);
			return NSArray.StringArrayFromHandle (values);
		}