Bug 19979 - NSImage DrawInRect 1 of 3 method missing
Summary: NSImage DrawInRect 1 of 3 method missing
Status: VERIFIED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 1.8.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Aaron Bockover [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2014-05-21 18:32 UTC by Stephen Shaw
Modified: 2015-01-19 07:31 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:
VERIFIED FIXED

Description Stephen Shaw 2014-05-21 18:32:56 UTC
MyImage.Flipped is deprecated since 10.6, but its the only way to indicate that the image is using a flipped coordinate system.

Flipped is obsolete -> [Obsolete ("On 10.6 and newer use DrawInRect with respectContextIsFlipped instead", false), CompilerGenerated]


The new way to do this is with DrawInRect.
drawInRect:fromRect:operation:fraction:respectFlipped:hints:

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSImage_Class/Reference/Reference.html
Comment 1 Udham Singh 2014-07-15 08:29:22 UTC
We have checked this issue and observed that we are getting only two methods with name "DrawInRect" in class "NSImage".

Screencast: http://www.screencast.com/t/VU89YD6V

Environment Info : 

=== Xamarin Studio ===

Version 5.2 (build 379)
Installation UUID: 3dbf10c4-ed30-4e55-8a8b-1704777c7b5f
Runtime:
	Mono 3.6.0 ((no/5ff701f)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 306000037

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.iOS ===

Version: 7.2.6.22 (Business Edition)
Hash: b983743
Branch: 
Build date: 2014-07-13 20:15:09-0400

=== Xamarin.Mac ===

Version: 1.8.0.8

=== Build Information ===

Release ID: 502000379
Git revision: e797f287ff084be87a252fec5fcc1c79c53bd422
Build date: 2014-07-15 03:41:44-04
Xamarin addins: e40cad220f133f3ced5a76d33649afee4d1358c1

=== Operating System ===

Mac OS X 10.8.5
Darwin localhost 12.5.0 Darwin Kernel Version 12.5.0
    Sun Sep 29 13:33:47 PDT 2013
    root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
Comment 2 Udham Singh 2014-10-29 07:05:02 UTC
I have checked this issue with XS 5.5.3 (build 6) and Xam.Mac 1.10.0.18, observed that we are getting only two methods with name "DrawInRect" in class "NSImage".

Screencast : http://www.screencast.com/t/BnBaYoc0a

Please let me know if I have to check something else to confirm this issue.

Environment Info : 

=== Xamarin Studio ===

Version 5.5.3 (build 6)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
Runtime:
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

=== Apple Developer Tools ===

Xcode 6.0.1 (6528)
Build 6A317

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Xamarin.iOS ===

Version: 8.4.0.15 (Business Edition)
Hash: 08968c4
Branch: 
Build date: 2014-10-20 21:48:06-0400

=== Build Information ===

Release ID: 505030006
Git revision: fbe3e9453daf6a3bb9a9709ed22bec35f7c9056b
Build date: 2014-10-23 13:08:38-04
Xamarin addins: e44add2b39de4dd57c0742bb2e620dfad84c64c6

=== Operating System ===

Mac OS X 10.9.4
Darwin Xamarin76s-Mac-mini.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 3 Timothy Risi 2015-01-16 19:31:02 UTC
This method has been added as:

public virtual void Draw (CGRect dstSpacePortionRect, CGRect srcSpacePortionRect, NSCompositingOperation op, nfloat requestedAlpha, bool respectContextIsFlipped, NSDictionary hints);
Comment 4 Udham Singh 2015-01-19 07:31:52 UTC
I have checked this issue with following builds 

Environment Info : 

Mac OS X 10.9.5
Xamarin Studio 5.7 (build 661)
Mono 3.12.0 ((detached/a813491)
GTK+ 2.24.23 (Raleigh theme)
Xcode 6.1.1 (6611)
Xamarin.Android 4.20.0.28 (Enterprise Edition)
Xamarin.iOS  8.6.0.51 (Enterprise Edition)
Xamarin.Mac 1.10.0.18 (Enterprise Edition)

Screencast : http://www.screencast.com/t/f2KRgELIPDGq

And observed that method given in comment 3 has been added. Hence closing this issue.