本文整理汇总了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);
}
}
示例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);
}
示例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);
}
}
示例4: AnimatingViewsWindowController
public AnimatingViewsWindowController (NSCoder coder) : base(coder)
{
}
示例5: EncodeRestorableState
public override void EncodeRestorableState (NSCoder coder)
{
base.EncodeRestorableState (coder);
coder.Encode (new NSString (string.IsNullOrEmpty (currentUrl) ? string.Empty : currentUrl), "monodoc.currentUrl");
}
示例6: MainWindow
public MainWindow (NSCoder coder) : base(coder)
{
Initialize ();
}
示例7: MainWindowController
public MainWindowController(NSCoder coder)
: base(coder)
{
Initialize();
}
示例8: FirstView
public FirstView (NSCoder coder) : base (coder)
{
Initialize ();
}
示例9: SetupSubTutorialEnd
public SetupSubTutorialEnd (NSCoder coder) : base (coder)
{
Initialize ();
}
示例10: BookmarkAssistant
public BookmarkAssistant (NSCoder coder) : base (coder)
{
}
示例11: PreferencesWindowController
public PreferencesWindowController (NSCoder coder) : base (coder)
{
Initialize ();
}
示例12: BookmarkPopover
public BookmarkPopover (NSCoder coder) : base (coder)
{
Initialize ();
}
示例13: WindowFrontMessageController
public WindowFrontMessageController (NSCoder coder) : base (coder)
{
Initialize ();
}
示例14: SettingsWindowController
public SettingsWindowController(NSCoder coder)
: base(coder)
{
Initialize();
}
示例15: GeneralView
public GeneralView (NSCoder coder) : base (coder)
{
Initialize ();
}