Ejemplo n.º 1
0
 public override void RestoreState(NSCoder coder)
 {
     base.RestoreState (coder);
     if (!coder.ContainsKey ("savedNoteId"))
         return;
     var id = (NSString)coder.DecodeObject ("savedNoteId");
     if (!string.IsNullOrEmpty (id))
         LoadNote (id);
 }
Ejemplo n.º 2
0
		public override void RestoreState (NSCoder coder)
		{
			base.RestoreState (coder);
			if (!coder.ContainsKey ("monodoc.currentUrl"))
				return;
			NSString url = coder.DecodeObject ("monodoc.currentUrl") as NSString;
			if (url != null && !string.IsNullOrEmpty (url.ToString ()))
				LoadUrl (url.ToString (), true);
		}
		public NbtClipboardDataMac (NSCoder coder)
			: base(NSObjectFlag.Empty)
		{
			_name = (NSString)coder.DecodeObject("name");
			_data = coder.DecodeBytes("data");
		}