public virtual NSObject this [string key] { get { if (key == null) { throw new ArgumentNullException("key"); } var nss = NSString.CreateNative(key, false); try { return(Runtime.GetNSObject(LowlevelObjectForKey(nss))); } finally { NSString.ReleaseNative(nss); } } set { throw new NotSupportedException(); } }
public virtual void Unschedule(NSRunLoop aRunLoop, string forMode) { if (aRunLoop == null) { throw new ArgumentNullException("aRunLoop"); } if (forMode == null) { throw new ArgumentNullException("forMode"); } var nsforMode = NSString.CreateNative(forMode); if (IsDirectBinding) { Messaging.void_objc_msgSend_IntPtr_IntPtr(this.Handle, Selector.GetHandle("unscheduleFromRunLoop:forMode:"), aRunLoop.Handle, nsforMode); } else { Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(this.SuperHandle, Selector.GetHandle("unscheduleFromRunLoop:forMode:"), aRunLoop.Handle, nsforMode); } NSString.ReleaseNative(nsforMode); }