Bug 22531 - NSWindow DidChangeBackingProperties notification missing
Summary: NSWindow DidChangeBackingProperties notification missing
Status: RESOLVED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 1.10.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2014-08-31 20:27 UTC by troy-dawson
Modified: 2014-12-05 13:50 UTC (History)
2 users (show)

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


Attachments
Screenshot of Assembly Browser for NSWindowDelegate (40.42 KB, image/png)
2014-09-01 07:39 UTC, troy-dawson
Details


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 troy-dawson 2014-08-31 20:27:46 UTC
AppKit NSWindow.h @protocol NSWindowDelegate <NSObject>

- (void)windowDidChangeBackingProperties:(NSNotification *)notification NS_AVAILABLE_MAC(10_7); // added in 10.7.3

This is necessary to support retina displays
Comment 1 Sadik Ali 2014-09-01 07:26:09 UTC
I have checked this issue but I am not getting the same behavior.

I have checked the definition of "NSWindow" class in assembly browser and observed that the "DidChangeBackingPropertiesNotification" is available in NSWindow class. 

Screencast: http://www.screencast.com/t/4uPb10MWyht

Could you please provider the build version you are using? You can get build version from here:

Xamarin Studio =>About Xamarin Studio =>Show details => Copy Information

Please let me know If I am missing anything?

Environment Info:

 === Xamarin Studio ===

Version 5.2.1 (build 1)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
Runtime:
    Mono 3.8.0 ((no/62a857e)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 308000007

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.iOS ===

Version: 7.2.6.28 (Trial Edition)
Hash: 606f31a
Branch: 
Build date: 2014-08-01 15:27:48-0400

=== Xamarin.Mac ===

Version: 1.10.0.9 (Trial Edition)

=== Xamarin.Android ===

Version: 4.14.0 (Trial Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
    Supported Android versions:
        1.6   (API level 4)
        2.1   (API level 7)
        2.2   (API level 8)
        2.3   (API level 10)
        3.1   (API level 12)
        3.2   (API level 13)
        4.0   (API level 14)
        4.0.3 (API level 15)
        4.1   (API level 16)
        4.2   (API level 17)
        4.3   (API level 18)
        4.4   (API level 19)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Build Information ===

Release ID: 502010001
Git revision: d06832ce9807d6be24aca225457e8b37c7669f6f
Build date: 2014-08-07 12:10:47-04
Xamarin addins: 1de032531be4cecf2f39dbee3b87aac78204058c

=== Operating System ===

Mac OS X 10.9.3
Comment 2 troy-dawson 2014-09-01 07:37:13 UTC
Xamarin Studio
Version 5.3 (build 427)
Installation UUID: 4b991e3f-5b17-407e-970d-153a6e5764e2
Runtime:
	Mono 3.8.0 ((no/62a857e)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000007

Apple Developer Tools
Xcode 6.0 (6256.16)
Build 6A280e

Xamarin.Mac
Version: 1.11.0.1 (Indie Edition)

Build Information
Release ID: 503000427
Git revision: b731d769195292820b25b6f9621a7a9decb3fff6
Build date: 2014-08-14 03:26:41-04
Xamarin addins: aaf33dfafebf0d688f6e1a1eb58bced21de89a1d

Operating System
Mac OS X 10.10.0
Comment 3 troy-dawson 2014-09-01 07:39:02 UTC
Created attachment 7878 [details]
Screenshot of Assembly Browser for NSWindowDelegate

the attached screenshot shows that Xamarin.Mac 1.11.0.1 is missing this notification.
Comment 4 Sadik Ali 2014-09-02 04:59:37 UTC
I have checked this issue and I am also getting same behavior.

I have checked the definition of "NSWindowDelegate" class in assembly browser and observed that the "windowDidChangeBackingProperties" is not available in NSWindowDelegate class. However, according to apple documentation "windowDidChangeBackingProperties" is available in "OS X v10.7 and later".

https://developer.apple.com/library/mac/documentation/cocoa/reference/NSWindowDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/NSWindowDelegate/windowDidChangeBackingProperties:

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

Environment Info:

Mac OS X 10.9.3
Xamarin Studio: 5.3 (build 427)
Xamarin.Mac : 1.11.0.1 (Trial Edition)
Xcode 6.0 (6256.16)
=== Build Information ===
Release ID: 503000427
Git revision: b731d769195292820b25b6f9621a7a9decb3fff6
Build date: 2014-08-14 03:26:41-04
Xamarin addins: aaf33dfafebf0d688f6e1a1eb58bced21de89a1d
Comment 5 Chris Hamons 2014-12-05 13:50:57 UTC
This appears to be fixed in the latest Xamarin.Mac alpha.