Esempio n. 1
0
 public Person(NSCoder decoder)
 {
     NSString str = (NSString)decoder.DecodeObject("name");
     if (str != null)
         this.Name = str.ToString();
     this.ExpectedRaise = decoder.DecodeFloat("expectedRaise");
 }
Esempio n. 2
0
		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);
		}
Esempio n. 3
0
 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;
        }
Esempio n. 6
0
 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;
        }
Esempio n. 8
0
 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");
 }
Esempio n. 9
0
		public EAGLView (NSCoder coder) : base (coder)
		{
			LayerRetainsBacking = true;
			LayerColorFormat = EAGLColorFormat.RGBA8;

			// retina support
			ContentScaleFactor = UIScreen.MainScreen.Scale;
		}
Esempio n. 10
0
        public EAGLView(NSCoder coder)
            : base(coder)
        {
            LayerRetainsBacking = true;
            LayerColorFormat = EAGLColorFormat.RGBA8;

            MultipleTouchEnabled = true;
        }
Esempio n. 11
0
		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);
			}
		}
Esempio n. 13
0
		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;
		}
Esempio n. 15
0
 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;
        }
Esempio n. 17
0
 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:");
			}
		}
Esempio n. 20
0
        public override id InitWithCoder(NSCoder aDecoder)
        {
            if (aDecoder.AllowsKeyedCoding)
            {
                Name = (NSString)aDecoder.DecodeObjectForKey("name");
                CandidateClassName = (NSString)aDecoder.DecodeObjectForKey("candidateClassName");
            }

            return this;
        }
Esempio n. 21
0
		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;
        }
Esempio n. 24
0
 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;
        }
Esempio n. 26
0
        public SignatureView(NSCoder coder)
            : base(coder)
        {
            this.MultipleTouchEnabled = false;

            this.BackgroundColor = UIColor.Clear;

            path = new UIBezierPath();

            path.LineWidth = 2;
        }
Esempio n. 27
0
        public override id InitWithCoder(NSCoder aDecoder)
        {
            base.InitWithCoder(aDecoder);

            if (aDecoder.AllowsKeyedCoding)
            {
                ReferencedPartialClassDescriptions = (NSMutableArray)aDecoder.DecodeObjectForKey("referencedPartialClassDescriptions");
            }

            return this;
        }
Esempio n. 28
0
        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;
        }
Esempio n. 31
0
 public AddExistingTenant(NSCoder coder) : base(coder)
 {
     Initialize();
 }
 public UserDetailsViewController(NSCoder coder) : base(coder)
 {
     Initialize();
 }
 public WindowOpenVpnManagementCommandController(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 34
0
 public BatteryStatusScreen(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 35
0
 public ImportView(NSCoder coder) : base(coder)
 {
 }
 public WebBrowser(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 37
0
 /// <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();
 }
Esempio n. 38
0
 public XmlBasedFormatPage(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 39
0
 public GameViewProxy(NSCoder coder) : base(coder)
 {
     Debug.WriteLine("GameViewProxy");
 }
 public ToastNotificationsViewAdapter(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 41
0
 public EAGLView(NSCoder coder) : base(coder)
 {
     LayerRetainsBacking = false;
     LayerColorFormat    = EAGLColorFormat.RGBA8;
     ContextRenderingApi = EAGLRenderingAPI.OpenGLES1;
 }
Esempio n. 42
0
 public vMainWorkSpace(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 43
0
 public MainWindowController(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 44
0
 public SetupSubLoginController(NSCoder coder) : base(coder)
 {
     Initialize();
 }
 protected ReactiveSplitViewController(NSCoder coder) : base(coder)
 {
     setupRxObj();
 }
Esempio n. 46
0
 public MainWindowController(NSCoder coder) : base(coder)
 {
 }
Esempio n. 47
0
 public PingWindow(NSCoder coder) : base(coder)
 {
 }
 public MainWindow(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 49
0
 public UILabelWithLinks(NSCoder coder)
     : base(coder)
 {
 }
Esempio n. 50
0
 public ImplicitAnimationScreen(NSCoder coder) : base(coder)
 {
     Initialize();
 }
 public AddRoomViewController(NSCoder coder)
     : base(coder)
 {
 }
Esempio n. 52
0
 public CmisOutline(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 53
0
 public PlotPanel(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 54
0
 public ShowTenantConfiguration(NSCoder coder) : base(coder)
 {
 }
Esempio n. 55
0
 public GameViewController(NSCoder coder) : base(coder)
 {
 }
Esempio n. 56
0
 public FirstView(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 57
0
 public LNLegalPanelController(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 58
0
 public DrawingView(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 59
0
 public ResendCodeViewController(NSCoder coder) : base(coder)
 {
     Initialize();
 }
Esempio n. 60
0
 public AlertViewsScreen_iPhone(NSCoder coder) : base(coder)
 {
     Initialize();
 }