當前位置: 首頁>>代碼示例>>C#>>正文


C# Foundation.NSCoder類代碼示例

本文整理匯總了C#中MonoMac.Foundation.NSCoder的典型用法代碼示例。如果您正苦於以下問題:C# NSCoder類的具體用法?C# NSCoder怎麽用?C# NSCoder使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


NSCoder類屬於MonoMac.Foundation命名空間,在下文中一共展示了NSCoder類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: CLRegion

		public CLRegion (NSCoder coder) : base (NSObjectFlag.Empty)
		{
			if (IsDirectBinding) {
				Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle);
			} else {
				Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle);
			}
		}
開發者ID:sichy,項目名稱:monomac,代碼行數:8,代碼來源:CLRegion.g.cs

示例2: RestoreState

 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);
 }
開發者ID:garuma,項目名稱:Macboy,代碼行數:9,代碼來源:MyDocument.cs

示例3: EncodeTo

        public virtual void EncodeTo(NSCoder coder)
        {
            if (coder == null)
                throw new ArgumentNullException ("coder");

            if (IsDirectBinding) {
                                Messaging.void_objc_msgSend_intptr (this.Handle, selAwakeFromNib, coder.Handle);
                        } else {
                                Messaging.void_objc_msgSendSuper_intptr (this.SuperHandle, selAwakeFromNib, coder.Handle);
                        }
        }
開發者ID:kangaroo,項目名稱:maccore,代碼行數:11,代碼來源:NSObject2.cs

示例4: AnimatingViewsWindowController

		public AnimatingViewsWindowController (NSCoder coder) : base(coder)
		{
		}
開發者ID:kangaroo,項目名稱:monomac,代碼行數:3,代碼來源:AnimatingViewsWindowController.cs

示例5: EncodeRestorableState

		public override void EncodeRestorableState (NSCoder coder)
		{
			base.EncodeRestorableState (coder);
			coder.Encode (new NSString (string.IsNullOrEmpty (currentUrl) ? string.Empty : currentUrl), "monodoc.currentUrl");
		}
開發者ID:roblillack,項目名稱:monomac,代碼行數:5,代碼來源:MyDocument.cs

示例6: MainWindow

		public MainWindow (NSCoder coder) : base(coder)
		{
			Initialize ();
		}
開發者ID:Anomalous-Software,項目名稱:monomac,代碼行數:4,代碼來源:MainWindow.cs

示例7: MainWindowController

		public MainWindowController(NSCoder coder)
			: base(coder)
		{
			Initialize();
		}
開發者ID:yurifpinto,項目名稱:ControleFinanceiro,代碼行數:5,代碼來源:MainWindowController.cs

示例8: FirstView

		public FirstView (NSCoder coder) : base (coder)
		{
			Initialize ();
		}
開發者ID:Dexyon,項目名稱:MvvmCross-Samples,代碼行數:4,代碼來源:FirstView.cs

示例9: SetupSubTutorialEnd

 public SetupSubTutorialEnd (NSCoder coder) : base (coder)
 {
     Initialize ();
 }
開發者ID:emrul,項目名稱:CmisSync,代碼行數:4,代碼來源:SetupSubTutorialEnd.cs

示例10: BookmarkAssistant

		public BookmarkAssistant (NSCoder coder) : base (coder)
		{
		}
開發者ID:Anomalous-Software,項目名稱:monomac,代碼行數:3,代碼來源:BookmarkAssistant.cs

示例11: PreferencesWindowController

		public PreferencesWindowController (NSCoder coder) : base (coder)
		{
			Initialize ();
		}
開發者ID:Anomalous-Software,項目名稱:monomac,代碼行數:4,代碼來源:PreferencesWindowController.cs

示例12: BookmarkPopover

		public BookmarkPopover (NSCoder coder) : base (coder)
		{
			Initialize ();
		}
開發者ID:davidblackuk,項目名稱:monomac,代碼行數:4,代碼來源:BookmarkPopover.cs

示例13: WindowFrontMessageController

		public WindowFrontMessageController (NSCoder coder) : base (coder)
		{
			Initialize ();
		}
開發者ID:liftir,項目名稱:airvpn-client,代碼行數:4,代碼來源:WindowFrontMessageController.cs

示例14: SettingsWindowController

 public SettingsWindowController(NSCoder coder)
     : base(coder)
 {
     Initialize();
 }
開發者ID:ivynetca,項目名稱:lapsestudio,代碼行數:5,代碼來源:SettingsWindowController.cs

示例15: GeneralView

		public GeneralView (NSCoder coder) : base (coder)
		{
			Initialize ();
		}
開發者ID:Anomalous-Software,項目名稱:monomac,代碼行數:4,代碼來源:GeneralView.cs


注:本文中的MonoMac.Foundation.NSCoder類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。