Ejemplo n.º 1
0
        public NSObject AddObserver(NSString aName, Action<NSNotification> notify, NSObject fromObject)
        {
            if (notify == null)
                throw new ArgumentNullException ("notify");

            var proxy = new InternalNSNotificationHandler (this, notify);

            AddObserver (proxy, new Selector (postSelector), aName, fromObject);

            return proxy;
        }
Ejemplo n.º 2
0
        public NSObject AddObserver(NSString aName, Action <NSNotification> notify, NSObject fromObject)
        {
            if (notify == null)
            {
                throw new ArgumentNullException("notify");
            }

            var proxy = new InternalNSNotificationHandler(this, notify);

            AddObserver(proxy, new Selector(postSelector), aName, fromObject);

            return(proxy);
        }