Bug 11446 - NSBRowser CellClass property is not static
Summary: NSBRowser CellClass property is not static
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Mac Add-in ()
Version: 4.0.8
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Aaron Bockover [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-03-27 12:59 UTC by Cyril GY
Modified: 2013-06-04 11:53 UTC (History)
1 user (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 FIXED

Description Cyril GY 2013-03-27 12:59:28 UTC
The XamMac framework shows the MonoMac.AppKit.NSBrowser CellClass as a static property, but the setter is not static!
So this property could not be assigned for an NSBrowser instance.


From the appkit.cs:
[Static]
[Export ("cellClass")]
Class CellClass { get; set; }



From the Apple documentation:
+ (Class)cellClass
- (void)setCellClass:(Class)factoryId
Comment 1 Aaron Bockover [MSFT] 2013-05-21 17:18:41 UTC
Nice catch. This is now fixed.
Comment 2 Aaron Bockover [MSFT] 2013-05-21 17:19:33 UTC
To avoid  breaking existing (working) API, the NSBrowser.CellClass getter is still static but the setter was dropped. I added NSBrowser.SetCellClass (Class) which is now an instance method.