https://bugzilla.novell.com/show_bug.cgi?id=685625
https://bugzilla.novell.com/show_bug.cgi?id=685625#c0 Summary: ASAsset.Orientation property causes InvalidCastException Classification: Mono Product: MonoTouch Version: unspecified Platform: Macintosh OS/Version: Mac OS X 10.6 Status: NEW Severity: Normal Priority: P5 - None Component: Class Libraries AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Trying to access the Orientation property of an ALAsset object fails with InvalidCastException in AssetsLibrary/ALAsset.cs:41. It tries to cast a NSString to a NSNumber. Using IntValue should help, as in the workaround in my code: (ALAssetOrientation) (((NSNumber) asset.ValueForProperty (new NSString ("ALAssetPropertyOrientation")) ).IntValue) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
