Bug 45621 - NSColorList.AvailableColorLists memory semantics appear incorrect
Summary: NSColorList.AvailableColorLists memory semantics appear incorrect
Status: CONFIRMED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) (show other bugs)
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-10-18 13:39 UTC by Chris Hamons
Modified: 2017-05-28 19:17 UTC (History)
3 users (show)

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


Attachments

Description Chris Hamons 2016-10-18 13:39:25 UTC
From the fourms, this code is needed to make nuking the default color lists from a color panel.

https://gist.github.com/chamons/29368bf1889aff2e7d46c5c23354180a

The DangerousRetain is obviously wrong, but it's needed, else we'll drop the retain by two and explode in a fireball.

The documentation is lacking, but this appears to work (via luck?) in MonoMac.

Note You need to log in before you can comment on or make changes to this bug.