Esempio n. 1
0
 public override void EncodeWithCoder(NSCoder aCoder)
 {
     base.EncodeWithCoder(aCoder);
     if (aCoder.AllowsKeyedCoding)
     {
         aCoder.EncodeIntegerForKey(Tag, "NSTag");
         if (Target != null)
         {
             aCoder.EncodeObjectForKey(Target, "NSTarget");
         }
         if (Action != null)
         {
             aCoder.EncodeObjectForKey(SEL.StringFromSelector(this.Action), "NSAction");
         }
         aCoder.EncodeObjectForKey(_control_view, "NSControlView");
     }
 }