상속: NSObject
예제 #1
0
        public override id InitWithCoder(NSCoder aDecoder)
        {
            id self = this;

            id menu = null;

            base.InitWithCoder(aDecoder);
            if (aDecoder.AllowsKeyedCoding)
            {
                if (aDecoder.ContainsValueForKey(@"NSInterfaceStyle"))
                {
                    _interface_style = (NSInterfaceStyle)aDecoder.DecodeIntForKey(@"NSInterfaceStyle");
                }
                if (aDecoder.ContainsValueForKey(@"NSMenu"))
                {
                    menu = (NSMenu)aDecoder.DecodeObjectForKey(@"NSMenu");
                }
                if (aDecoder.ContainsValueForKey(@"NSNextResponder"))
                {
                    NextResponder = (NSResponder)aDecoder.DecodeObjectForKey(@"NSNextResponder");
                }
            }
            else
            {

            }

            Menu = (NSMenu)menu;

            return self;
        }
예제 #2
0
 public virtual void SetNextResponder(NSResponder aResponder)
 {
     _next_responder = aResponder;
 }