Bug 23357 - SortDescriptorsChanged override param oldDescriptors isn't valid first time
Summary: SortDescriptorsChanged override param oldDescriptors isn't valid first time
Status: RESOLVED NORESPONSE
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 1.8.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2014-09-24 20:57 UTC by Stephen Shaw
Modified: 2014-12-03 18:24 UTC (History)
2 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 NORESPONSE

Description Stephen Shaw 2014-09-24 20:57:54 UTC
The first time you enter the SortDescriptorsChanged override in the NSTableViewSource oldDescriptors isn't usable. I get this back:

> oldDescriptors
{MonoMac.Foundation.NSSortDescriptor[0]}
> oldDescriptors.Count()
Method `Count' not found in type `MonoMac.Foundation.NSSortDescriptor[]'.

After the first time through it seems to be fine, but I get ascending twice and then it alternates correctly:
Sort column ascending
Sort column ascending
Sort column descending
Sort column ascending
Sort column descending
Sort column ascending
Sort column descending
Sort column ascending
Sort column descending

This means that the icon in the table column header is off and out of sync as to whether its ascending or descending.
Comment 1 Ram Chandra 2014-09-30 06:49:27 UTC
I have checked this issue but I am unable to reproduce this issue.

Could you please provide sample application or steps to reproduce this issue?  So that we can reproduce this issue at our end.

Environment Info: 

=== Xamarin Studio ===

Version 5.5 (build 223)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
Runtime:
	Mono 3.10.0 ((detached/ac51002)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000016

=== Apple Developer Tools ===

Xcode 6.0.1 (6528)
Build 6A317

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Build Information ===

Release ID: 505000223
Git revision: 7bf83889c0de1aa00290619cb8ed48acbed72c52
Build date: 2014-09-29 13:12:41-04
Xamarin addins: 257f0493a82f82ff28cf770b1ed09bd181d62968

=== Operating System ===

Mac OS X 10.9.5
Darwin Jatin66s-iMac.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 2 Chris Hamons 2014-12-03 18:24:30 UTC
Since we haven't received a report case in two months and the bug report doesn't have enough information to reproduce I'm going to close this. Please attach an example and reopen if you run into this again.