Bug 4181 - CALayer.ConvertTimeFromLayer() incorrectly specifies double 'rect' as a parameter
Summary: CALayer.ConvertTimeFromLayer() incorrectly specifies double 'rect' as a param...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.2
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2012-04-02 06:06 UTC by Dermot
Modified: 2012-04-02 19:09 UTC (History)
3 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:
RESOLVED FIXED

Description Dermot 2012-04-02 06:06:49 UTC
CALayer.ConvertTimeFromLayer() incorrectly specifies double 'rect' as a parameter. The double value passed in is a time value, got from CAAnimation.CurrentMediaTime(), not a rectangle. It's just the naming that causes confusion, the actual method seems to work ok.
Comment 1 Sebastien Pouliot 2012-04-02 15:40:57 UTC
You're right [1] it should be named `timeInterval`. It looks like a copy-paste error, I'll check if there are others and fix this for future releases.

https://developer.apple.com/library/ios/#documentation/graphicsimaging/reference/CALayer_class/Introduction/Introduction.html#//apple_ref/occ/instm/CALayer/convertTime:fromLayer:
Comment 2 Sebastien Pouliot 2012-04-02 17:29:27 UTC
Fixed. Thanks for reporting it.

master: b0c693aa445dfccb8190922486faec046961af28
QA: unit tests in master

note: It will likely be back ported to 5.2 (once something else is fixed)
Comment 3 Sebastien Pouliot 2012-04-02 19:09:36 UTC
5.2-series: 25029ab6c46e58aaf1dbc9013fb1df2a7eb3987b