public static NSSet MakeNSObjectSet <T> (T [] values) where T : NSObject { NSArray a = NSArray.FromNSObjects(values); return((NSSet)Runtime.GetNSObject(MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, selSetWithArray, a.Handle))); }
public static bool LoadNibNamed(this NSBundle bundle, string nibName, NSObject owner, NSArray topLevelObjects) { bool result; IntPtr name = NSString.CreateNative(nibName); result = Messaging.bool_objc_msgSend_IntPtr_IntPtr_IntPtr(bundle.Handle, Selector.GetHandle("loadNibNamed:owner:topLevelObjects:"), name, owner.Handle, topLevelObjects != null ? topLevelObjects.Handle : IntPtr.Zero); NSString.ReleaseNative(name); return(result); }
public NSSet(params string [] strings) : this(NSArray.FromStrings(strings)) { }
public T [] ToArray <T> () where T : NSObject { IntPtr nsarr = _AllObjects(); return(NSArray.ArrayFromHandle <T> (nsarr)); }
public NSSet(params object [] objs) : this(NSArray.FromObjects(objs)) { }
public static NSOrderedSet MakeNSOrderedSet <T> (T [] values) where T : NSObject { NSArray a = NSArray.FromNSObjects(values); return(Runtime.GetNSObject <NSOrderedSet> (MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, Selector.GetHandle(selSetWithArray), a.Handle))); }
public NSOrderedSet(params NSObject [] objs) : this(NSArray.FromNSObjects(objs)) { }
public static string[] GetDirectories(NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde = true) { return(NSArray.StringArrayFromHandle(NSSearchPathForDirectoriesInDomains(directory, domainMask, expandTilde))); }
public static string[] GetDirectories(NSSearchPathDirectory directory, NSSearchPathDomain domainMask, bool expandTilde) { IntPtr values = NSSearchPathForDirectoriesInDomains(directory, domainMask, expandTilde); return(NSArray.StringArrayFromHandle(values)); }