Bug 35753 - NSTableView Cell calls DrawRect() repeatedly
Summary: NSTableView Cell calls DrawRect() repeatedly
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Other ()
Version: 2.0.2
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Cody Beyer (MSFT)
URL:
Depends on:
Blocks:
 
Reported: 2015-11-10 16:15 UTC by Cody Beyer (MSFT)
Modified: 2017-03-29 15:27 UTC (History)
4 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 NOT_REPRODUCIBLE

Description Cody Beyer (MSFT) 2015-11-10 16:15:15 UTC
### Description

The following sample demonstrates an issue, where NSTableView is subclassed with NSTextFields for editable rows, and while a row is being edited, DrawRect is called many, many times a second. 

### Sample

https://www.dropbox.com/s/ahqzx7kw1tavc23/MacTables.rar?dl=0

### Steps to Reproduce

1. Download Sample
2. Open in XS
3. Deploy in Debug
4. Double-click a cell to edit
5. Review Application Output console

### Expected Results

Application Output show report drawrect called upon entry

### Actual Results

DrawRect is called repeatedly 

### Versions

=== Xamarin Studio ===

Version 5.9.8 (build 0)
Installation UUID: 73204efb-3f52-4561-bfd0-1a9af26f9341
Runtime:
	Mono 4.0.5 ((detached/1d8d582)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400050001

=== Xamarin.Android ===

Version: 5.1.9.0 (Business Edition)
Android SDK: /Users/codybeyer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 7.1 (9079)
Build 7B91b

=== Xamarin.iOS ===

Version: 9.1.0.27 (Business Edition)
Hash: 1f068b4
Branch: master
Build date: 2015-10-27 18:59:21-0400

=== Xamarin.Mac ===

Version: 2.0.2.111 (Business Edition)

=== Build Information ===

Release ID: 509080000
Git revision: cc5f6e5658589ca7f46210c57fad947e75f30abd
Build date: 2015-10-21 19:27:41-04
Xamarin addins: d77f191bd7d3451adf837b85b38f2b7c60004400

=== Operating System ===

Mac OS X 10.11.1
Darwin Codys-MBP.router 15.0.0 Darwin Kernel Version 15.0.0
    Sat Sep 19 15:53:46 PDT 2015
    root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
Comment 5 Dominic N [MSFT] 2017-03-29 15:27:31 UTC
This bug has been open and in NEEDINFO status for quite some time. As a result of age and some additional considerations, we are closing this bug for housekeeping.

As it stands, the sample provided would take multiple hours to cut down to a size that's easily utilized by the Xamarin.Mac engineers. If you're still experiencing the issue in the latest Xamarin.Mac version, please reopen the report with an updated, minimized test case to assist the team in pinpointing the root of the issue.

Thank you.