NSObject INSCopying.Copy(NSZone zone) { var ob = (ICopiableObject) new CompositeCell(); ob.CopyFrom(this); return((NSObject)ob); }
public NSObject Copy(NSZone zone) { var board = new Board(); board.SetGameModel(this); return(board); }
public override NSObject Copy(NSZone zone) { var ob = (ICopiableObject)base.Copy(zone); ob.CopyFrom(this); return((NSObject)ob); }
public NSObject Copy(NSZone zone) { if (zone == null) { throw new ArgumentNullException("zone"); } return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("copyWithZone:"), zone.Handle))); }
public override NSObject Copy(NSZone zone) { var copy = base.Copy(zone) as PinterestLayoutAttributes; copy.AnnotationHeight = AnnotationHeight; copy.AnnotationWidth = AnnotationWidth; return(copy); }
/// <summary> /// Like what happens for the ios designer, AppKit can sometimes clone the native `NSTextFieldCell` using the Copy (NSZone) /// method. We *need* to ensure we can create a new managed wrapper for the cloned native object so we need the IntPtr /// constructor. NOTE: By keeping this override in managed we ensure the new wrapper C# object is created ~immediately, /// which makes it easier to debug issues. /// </summary> /// <returns>The copy.</returns> /// <param name="zone">Zone.</param> public override NSObject Copy(NSZone zone) { // Don't remove this override because the comment on this explains why we need this! var newCell = (CustomTextFieldCell)base.Copy(zone); newCell.bgColor = bgColor; return(newCell); }
/// <summary> /// Like what happens for the ios designer, AppKit can sometimes clone the native `NSTextFieldCell` using the Copy (NSZone) /// method. We *need* to ensure we can create a new managed wrapper for the cloned native object so we need the IntPtr /// constructor. NOTE: By keeping this override in managed we ensure the new wrapper C# object is created ~immediately, /// which makes it easier to debug issues. /// </summary> /// <returns>The copy.</returns> /// <param name="zone">Zone.</param> public override NSObject Copy(NSZone zone) { // Don't remove this override because the comment on this explains why we need this! var newCell = (VerticallyCenteredTextFieldCell)base.Copy(zone); newCell.offset = offset; return(newCell); }
public override NSObject Copy(NSZone zone) { // required by objc method override var copy = base.Copy(zone) as BoardAnchor; copy.Size = this.Size; return(copy); }
public override NSObject Copy(NSZone zone) { // required by objc method override var copy = base.Copy(zone) as KeyPositionAnchor; copy.Image = this.Image; copy.MappingStatus = this.MappingStatus; return(copy); }
public override NSObject Copy(NSZone zone) { StretchImage image = (StretchImage)base.Copy(zone); image.StartPoint = this.StartPoint; image.EndPoint = this.EndPoint; image.Opacity = this.Opacity; image.PerformSelector(new Selector("retain")); return image; }
public override NSObject Copy(NSZone zone) { StretchImage image = (StretchImage)base.Copy(zone); image.StartPoint = this.StartPoint; image.EndPoint = this.EndPoint; image.Opacity = this.Opacity; image.PerformSelector(new Selector("retain")); return(image); }
public override NSObject Copy(NSZone zone) { var copy = (SpringAnimation)base.Copy(zone); copy._steps = _steps; copy._spring = _spring; copy._interpolator = _interpolator; copy.Speed = Speed * (float)(1.0 / EasingAnimation.DragCoefficient()); return(copy); }
/// <summary> /// Like what happens for the ios designer, AppKit can sometimes clone the native `NSTextFieldCell` using the Copy (NSZone) /// method. We *need* to ensure we can create a new managed wrapper for the cloned native object so we need the IntPtr /// constructor. NOTE: By keeping this override in managed we ensure the new wrapper C# object is created ~immediately, /// which makes it easier to debug issues. /// </summary> /// <returns>The copy.</returns> /// <param name="zone">Zone.</param> public override NSObject Copy(NSZone zone) { // Don't remove this override because the comment on this explains why we need this! var newCell = (CustomCell)base.Copy(zone); newCell.editor = editor; newCell.selChangeObserver = selChangeObserver; newCell.Context = Context; newCell.EventSink = EventSink; return(newCell); }
public override NSObject Copy(NSZone zone) { var copy = (EasingAnimation)base.Copy(zone); copy._curve = _curve; copy._interpolator = _interpolator; var drag = (float)(1.0 / DragCoefficient()); copy.Speed = Speed * drag; return(copy); }
public virtual NSObject Copy(NSZone zone) { var zone__handle__ = zone.GetNonNullHandle(nameof(zone)); if (IsDirectBinding) { return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("copyWithZone:"), zone.Handle))); } else { return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("copyWithZone:"), zone.Handle))); } }
public virtual NSObject Copy(NSZone zone) { if (zone == null) { throw new ArgumentNullException("zone"); } if (IsDirectBinding) { return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("copyWithZone:"), zone.Handle))); } else { return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("copyWithZone:"), zone.Handle))); } }
public NSObject Copy (NSZone zone) { var board = new Board (); board.SetGameModel (this); return board; }
public virtual NSObject Copy (NSZone zone) { if (zone == null) throw new ArgumentNullException ("zone"); if (IsDirectBinding) { return Runtime.GetNSObject (global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("copyWithZone:"), zone.Handle)); } else { return Runtime.GetNSObject (global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("copyWithZone:"), zone.Handle)); } }
public override NSObject Copy (NSZone zone) { var attributes = (MyCollectionViewGridLayoutAttributes)base.Copy (zone); attributes.BackgroundColor = BackgroundColor; return attributes; }
public override NSObject Copy (NSZone zone) { return new CustomImage (actx, drawCallback); }
public NSObject Copy (NSZone zone) { return null; }
public NSObject Copy(NSZone zone) { var zone__handle__ = zone.GetNonNullHandle(nameof(zone)); return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("copyWithZone:"), zone.Handle))); }
public override NSObject Copy(NSZone zone) { return(new NSNumber(val)); }
public static NSObject AllocWithZone(NSZone zone) { return(default(NSObject)); }
public override NSObject Copy(NSZone zone) { return(base.Copy(zone)); }
public override NSObject Copy (NSZone zone) { var ob = (ICopiableObject) base.Copy (zone); ob.CopyFrom (this); return (NSObject) ob; }
public override NSObject Copy(NSZone zone) { return(new CustomImage(actx, drawCallback)); }
public override NSObject Copy(NSZone zone) { return(new NSString(val)); }