public Person(NSCoder decoder) { NSString str = (NSString)decoder.DecodeObject("name"); if (str != null) this.Name = str.ToString(); this.ExpectedRaise = decoder.DecodeFloat("expectedRaise"); }
public ListItem(NSCoder coder) { Text = (string)(NSString)coder.DecodeObject (ListItemEncodingTextKey); NSUuid uid = (NSUuid)coder.DecodeObject (ListItemEncodingUUIDKey); UID = new Guid (uid.GetBytes()); IsComplete = coder.DecodeBool (ListItemEncodingCompletedKey); }
public EAGLView(NSCoder coder) : base(coder) { _frameInterval = 1; LayerRetainsBacking = true; LayerColorFormat = EAGLColorFormat.RGBA8; }
public override void EncodeWithCoder(NSCoder aCoder) { if (aCoder.AllowsKeyedCoding) { aCoder.EncodeObjectForKey(_imageName, @"NSImageName"); } }
//public NSCustomResource(NSObjectDecoder aDecoder) // : base(aDecoder) //{ //} public override id InitWithCoder(NSCoder aDecoder) { NSObject realObject = null; if (aDecoder.AllowsKeyedCoding) { _className = (NSString)aDecoder.DecodeObjectForKey("NSClassName"); _resourceName = (NSString)aDecoder.DecodeObjectForKey("NSResourceName"); if (_className == "NSSound") { //realObject = null; } else if (_className == "NSImage") { realObject = new NSImage(); ((NSImage)realObject).ResourceName = _resourceName; } } else { } return realObject; }
public EAGLView(NSCoder coder) : base(coder) { LayerRetainsBacking = false; LayerColorFormat = EAGLColorFormat.RGBA8; ContextRenderingApi = EAGLRenderingAPI.OpenGLES1; }
public override id InitWithCoder(NSCoder aDecoder) { base.InitWithCoder(aDecoder); ////////////////////////////////////////////////////////////////////////////// //<object class="NSNibBindingConnector" key="connector"> // <reference key="NSSource" ref="898315540"/> // <reference key="NSDestination" ref="622487602"/> // <string key="NSLabel">content: arrangedObjects</string> // <string key="NSBinding">content</string> // <string key="NSKeyPath">arrangedObjects</string> // <int key="NSNibBindingConnectorVersion">2</int> //</object> ////////////////////////////////////////////////////////////////////////////// if (aDecoder.AllowsKeyedCoding) { if (aDecoder.DecodeIntForKey("NSNibBindingConnectorVersion") != 2) { return null; } Binding = (NSString)aDecoder.DecodeObjectForKey("NSBinding"); KeyPath = (NSString)aDecoder.DecodeObjectForKey("NSKeyPath"); Options = (NSMutableDictionary)aDecoder.DecodeObjectForKey("NSOptions"); } else { } return this; }
public void EncodeTo(NSCoder coder) { coder.Encode(StartPoint.X, "startPointX"); coder.Encode(StartPoint.Y, "startPointY"); coder.Encode(Endpoint.X, "endPointX"); coder.Encode(Endpoint.Y, "endPointY"); }
public EAGLView (NSCoder coder) : base (coder) { LayerRetainsBacking = true; LayerColorFormat = EAGLColorFormat.RGBA8; // retina support ContentScaleFactor = UIScreen.MainScreen.Scale; }
public EAGLView(NSCoder coder) : base(coder) { LayerRetainsBacking = true; LayerColorFormat = EAGLColorFormat.RGBA8; MultipleTouchEnabled = true; }
public List(NSCoder coder) : this() { NSArray array = (NSArray)coder.DecodeObject (ListEncodingItemsKey); for (nuint i = 0; i < array.Count; i++) items.Add (array.GetItem<ListItem> (i)); Color = (ListColor)coder.DecodeInt (ListEncodingColorKey); }
public GADSearchBannerView (NSCoder coder) : base (NSObjectFlag.Empty) { IsDirectBinding = GetType ().Assembly == global::ApiDefinition.Messaging.this_assembly; if (IsDirectBinding) { Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle); } else { Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle); } }
public XMUtilities (NSCoder coder) : base (NSObjectFlag.Empty) { IsDirectBinding = GetType ().Assembly == global::XMBindingLibrarySample.Messaging.this_assembly; if (IsDirectBinding) { Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle); } else { Handle = MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle); } }
public SmoothedBIView (NSCoder aDecoder) { // this.SetMultipleTouchEnabled(false); MultipleTouchEnabled = false; // path = UIBezierPath.BezierPath(); Path = new UIBezierPath (); // path.SetLineWidth(2.0); Path.LineWidth = 3.0f; }
public override void EncodeTo(NSCoder coder) { if (this.Title != null) coder.Encode(new NSString(this.Title), "Title"); if (this.Subtitle != null) coder.Encode(new NSString(this.Subtitle), "Subtitle"); coder.Encode(this.Coordinate.Latitude, "Latitude"); coder.Encode(this.Coordinate.Longitude, "Longitude"); }
public override id InitWithCoder(NSCoder decoder) { id self = this; base.InitWithCoder(decoder); OrderedObjects = (NSArray)decoder.DecodeObjectForKey("orderedObjects"); return self; }
public BNRMapPoint(NSCoder decoder) { NSString str = (NSString)decoder.DecodeObject(@"Title"); if (str != null) _title = str.ToString(); str = (NSString)decoder.DecodeObject(@"Subtitle"); if (str != null) _subtitle = str.ToString(); Coordinate = new CLLocationCoordinate2D(decoder.DecodeDouble(@"Latitude"), decoder.DecodeDouble(@"Longitude")); }
public TOCropViewController (NSCoder coder) : base (NSObjectFlag.Empty) { IsDirectBinding = GetType ().Assembly == global::ApiDefinition.Messaging.this_assembly; if (IsDirectBinding) { InitializeHandle (global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:"); } else { InitializeHandle (global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:"); } }
public MMDrawerBarButtonItem (NSCoder coder) : base (NSObjectFlag.Empty) { IsDirectBinding = GetType ().Assembly == global::ApiDefinitions.Messaging.this_assembly; if (IsDirectBinding) { InitializeHandle (global::ApiDefinitions.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:"); } else { InitializeHandle (global::ApiDefinitions.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:"); } }
public override id InitWithCoder(NSCoder aDecoder) { if (aDecoder.AllowsKeyedCoding) { Name = (NSString)aDecoder.DecodeObjectForKey("name"); CandidateClassName = (NSString)aDecoder.DecodeObjectForKey("candidateClassName"); } return this; }
public ImageInfo(NSCoder decoder) { // Decode data var name = decoder.DecodeObject("name") as NSString; var type = decoder.DecodeObject("imageType") as NSString; // Save data Name = name.ToString(); ImageType = type.ToString (); }
public override id InitWithCoder(NSCoder aDecoder) { base.InitWithCoder(aDecoder); if (aDecoder.AllowsKeyedCoding) { Connector = (NSNibBindingConnector)aDecoder.DecodeObjectForKey("connector"); } return this; }
public override id InitWithCoder(NSCoder aDecoder) { id self = this; if (base.InitWithCoder(aDecoder) != null) { } return self; }
public CALevelMeter(NSCoder coder) : base(coder) { _showsPeaks = true; _channelNumbers = 1; _vertical = (this.Frame.Width < this.Frame.Height) ? true : false; // NO; _useGL = true; _meterTable = new MeterTable(kMinDBvalue); this.layoutSubLevelMeters (); this.registerForBackgroundNotifications (); }
public override id InitWithCoder(NSCoder aDecoder) { id self = this; if (aDecoder.AllowsKeyedCoding) { _imageName = (NSString)aDecoder.DecodeObjectForKey(@"NSImageName"); } return self; }
public SignatureView(NSCoder coder) : base(coder) { this.MultipleTouchEnabled = false; this.BackgroundColor = UIColor.Clear; path = new UIBezierPath(); path.LineWidth = 2; }
public override id InitWithCoder(NSCoder aDecoder) { base.InitWithCoder(aDecoder); if (aDecoder.AllowsKeyedCoding) { ReferencedPartialClassDescriptions = (NSMutableArray)aDecoder.DecodeObjectForKey("referencedPartialClassDescriptions"); } return this; }
public override id AwakeAfterUsingCoder(NSCoder aDecoder) { id self = this; #if DEBUG //NSLog (@"%x awakeAfterUsingCoder NSCustomObject: className = %@, realObject = %@, extension = %@", self, className, realObject, extension); #endif //FIXME : What is objects ??? //[objects addObject:self]; return self; }
public override id InitWithCoder(NSCoder aDecoder) { id self = this; if (aDecoder.AllowsKeyedCoding) { MajorKey = (NSString)aDecoder.DecodeObjectForKey("majorKey"); MinorKey = (NSString)aDecoder.DecodeObjectForKey("minorKey"); } return self; }
public override id InitWithCoder(NSCoder aDecoder) { id self = this; if (aDecoder.AllowsKeyedCoding) { Connection = (IBConnection)aDecoder.DecodeObjectForKey("connection"); ConnectionID = aDecoder.DecodeIntForKey("connectionID"); } return self; }
public AddExistingTenant(NSCoder coder) : base(coder) { Initialize(); }
public UserDetailsViewController(NSCoder coder) : base(coder) { Initialize(); }
public WindowOpenVpnManagementCommandController(NSCoder coder) : base(coder) { Initialize(); }
public BatteryStatusScreen(NSCoder coder) : base(coder) { Initialize(); }
public ImportView(NSCoder coder) : base(coder) { }
public WebBrowser(NSCoder coder) : base(coder) { Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="ReactiveTableViewCell"/> class. /// </summary> /// <param name="coder">The coder.</param> protected ReactiveTableViewCell(NSCoder coder) : base(NSObjectFlag.Empty) { SetupRxObj(); }
public XmlBasedFormatPage(NSCoder coder) : base(coder) { Initialize(); }
public GameViewProxy(NSCoder coder) : base(coder) { Debug.WriteLine("GameViewProxy"); }
public ToastNotificationsViewAdapter(NSCoder coder) : base(coder) { Initialize(); }
public vMainWorkSpace(NSCoder coder) : base(coder) { Initialize(); }
public MainWindowController(NSCoder coder) : base(coder) { Initialize(); }
public SetupSubLoginController(NSCoder coder) : base(coder) { Initialize(); }
protected ReactiveSplitViewController(NSCoder coder) : base(coder) { setupRxObj(); }
public MainWindowController(NSCoder coder) : base(coder) { }
public PingWindow(NSCoder coder) : base(coder) { }
public MainWindow(NSCoder coder) : base(coder) { Initialize(); }
public UILabelWithLinks(NSCoder coder) : base(coder) { }
public ImplicitAnimationScreen(NSCoder coder) : base(coder) { Initialize(); }
public AddRoomViewController(NSCoder coder) : base(coder) { }
public CmisOutline(NSCoder coder) : base(coder) { Initialize(); }
public PlotPanel(NSCoder coder) : base(coder) { Initialize(); }
public ShowTenantConfiguration(NSCoder coder) : base(coder) { }
public GameViewController(NSCoder coder) : base(coder) { }
public FirstView(NSCoder coder) : base(coder) { Initialize(); }
public LNLegalPanelController(NSCoder coder) : base(coder) { Initialize(); }
public DrawingView(NSCoder coder) : base(coder) { Initialize(); }
public ResendCodeViewController(NSCoder coder) : base(coder) { Initialize(); }
public AlertViewsScreen_iPhone(NSCoder coder) : base(coder) { Initialize(); }