Beispiel #1
0
 public static NSSet MakeNSObjectSet <T> (T [] values) where T : class, INativeObject
 {
     using (var a = NSArray.FromNSObjects(values))
         return(Runtime.GetNSObject <NSSet> (_SetWithArray(a.Handle)));
 }
Beispiel #2
0
 public NSSet(params string [] strings) : this(NSArray.FromStrings(strings))
 {
 }
Beispiel #3
0
        public T [] ToArray <T> () where T : class, INativeObject
        {
            IntPtr nsarr = _AllObjects();

            return(NSArray.ArrayFromHandle <T> (nsarr));
        }
 public NSUrlCredential(SecIdentity identity, SecCertificate [] certificates, NSUrlCredentialPersistence persistence)
     : this(identity.Handle, NSArray.FromNativeObjects(certificates).Handle, persistence)
 {
 }
Beispiel #5
0
 public NSSet(params object [] objs) : this(NSArray.FromObjects(objs))
 {
 }
Beispiel #6
0
 NSMutableDictionary(TKey[] keys, TValue[] values, bool validation)
     : base(NSArray.FromNSObjects(values), NSArray.FromNSObjects(keys))
 {
 }
Beispiel #7
0
 public NSMutableDictionary(TKey key, TValue value)
     : base(NSArray.FromNSObjects(value), NSArray.FromNSObjects(key))
 {
 }
Beispiel #8
0
 static NSMutableDictionary <TKey, TValue> GenericFromObjectsAndKeysInternal(NSArray objects, NSArray keys)
 {
     return(Runtime.GetNSObject <NSMutableDictionary <TKey, TValue> > (_FromObjectsAndKeysInternal(objects.Handle, keys.Handle)));
 }
 internal NSMutableSet(params INativeObject [] objs)
     : this(NSArray.FromNSObjects(objs))
 {
 }
Beispiel #10
0
 public NSMutableSet(params NSObject [] objs)
     : this(NSArray.FromNSObjects(objs))
 {
 }
 public NSUrl[] GetMountedVolumes(NSString [] properties, NSVolumeEnumerationOptions options)
 {
     return(GetMountedVolumes(NSArray.FromNSObjects(properties), options));
 }
Beispiel #12
0
 public static string[] GetDirectories(NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde = true)
 {
     return(NSArray.StringArrayFromHandle(NSSearchPathForDirectoriesInDomains((nuint)(ulong)directory, (nuint)(ulong)domainMask, expandTilde)));
 }