Bug 21530 - CABasicAnimation From/To isn't necessarily an NSObject
Summary: CABasicAnimation From/To isn't necessarily an NSObject
Status: VERIFIED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: 2.0.x
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2014-07-22 21:16 UTC by Jérémie Laval
Modified: 2015-03-16 08:11 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Jérémie Laval 2014-07-22 21:16:54 UTC
You can pass CGColor and other CG types which are not NSObjects.
Comment 1 Prashant manu 2014-07-23 01:25:54 UTC
Could you please provide us direction/suggestion so that we can check this issue?
Comment 2 Chris Hamons 2014-12-03 13:57:10 UTC
CABasicAnimation.From and CABasicAnimation.To property should accept things other than NSObject.
Comment 3 Chris Hamons 2014-12-08 12:44:20 UTC
Fixed in master:

maccore - 3d2ec24a463b1754a2d834cb3b4d174adb1f1e63
xamcore - b7cdf23e746fdfbf2117effdce181d968c7b3535
Comment 5 Chris Hamons 2015-02-18 17:15:26 UTC
Sorry, the milestone was incorrect. This will make 2.0 not 1.12.

* 3d2ec24 - Add CABasicAnimation To/From/By bindings for non-NSObject. (2 months ago)<Chris Hamons>
Comment 6 Mohit Kheterpal 2015-03-03 09:13:36 UTC
I have checked this issue and observed that we are still getting this issue with latest build of master xamarin.mac-1.13.1.431.

Screencast : http://www.screencast.com/t/6TIiOGS0jLmU

Hence reopening this issue.
Comment 7 Chris Hamons 2015-03-13 17:07:08 UTC
This is fixed in those versions. What i neglected to mention is that due to our inability to break API / unable to have property of more than one type, the non NSObject API looks like:

	public T GetFromAs <T> () where T : class, INativeObject
	public void SetFrom (INativeObject value)
	public T GetToAs <T> () where T : class, INativeObject
	public void SetTo (INativeObject value)
	public T GetByAs <T> () where T : class, INativeObject
	public void SetBy (INativeObject value)
Comment 8 Rajneesh Kumar 2015-03-16 08:11:00 UTC
I have checked this issue with the following builds:

=====Environment Info:===
Xamarin Studio Version 5.9 (build 222)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
Runtime:
Mono 4.0.0 ((detached/565c18b)
GTK+ 2.24.23 (Raleigh theme)
Package version: 400000068
Apple Developer Tools Xcode 6.2 (6776)
Build 6C131e
Xamarin.Mac Version: 2.0.0.110 (Business Edition)
=== Build Information ===
Release ID: 509000222
Git revision: d0ebd741db1b0740fdb46e46558a10f5fc0068e1
Build date: 2015-03-16 06:08:37-04
Xamarin addins: a87d89e3612e207fe3ccc142b1c2a2eb0deff730
Operating System Mac OS X 10.9.5
Darwin MacMini.local 13.4.0 Darwin Kernel Version 13.4.0
Sun Aug 17 19:50:11 PDT 2014
root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64

As per comment 7 I have checked this issue again and observed that issue has been fixed and its working fine. Now, the non NSObject API looks like as describe in comment 7: Here is the screencast for the same: http://www.screencast.com/t/WPPOJswQ

Hence I am closing this issue.
Thanks.