Bug 50426 - [Binding] NSToolbarItemGroup
Summary: [Binding] NSToolbarItemGroup
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: (C10)
Assignee: Bugzilla
Depends on:
Reported: 2016-12-20 13:17 UTC by Marko
Modified: 2016-12-29 16:42 UTC (History)
2 users (show)

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:

Description Marko 2016-12-20 13:17:08 UTC
I can't find the NSToolbarItemGroup in Xamarin.Mac https://developer.apple.com/reference/appkit/nstoolbaritemgroup. Is it missing or is there another way to use it?
Comment 1 Chris Hamons 2016-12-20 15:51:01 UTC
Oops. Yep, we missed that binding when we did the rest of the NSToolbar APIs.

I've filed a PR to add it here - https://github.com/xamarin/xamarin-macios/pull/1386

If you want, I can work up a manual binding that you can use in the mean time. Let me know if you are interested in that short term fix.
Comment 2 Marko 2016-12-20 15:56:52 UTC
Thanks for the quick response, Chris. A manual binding would be really great.
Comment 3 Chris Hamons 2016-12-20 16:04:03 UTC
The "manual binding" under the hood in this case is really just the generated code tweaked to compile outside of Xamarin.Mac.dll

Try this and let me know how it goes:

Comment 4 Marko 2016-12-20 16:22:29 UTC
The constructor which takes only a string (initWithItemIdentifier) is missing.
Comment 5 Chris Hamons 2016-12-20 16:24:36 UTC
You are correct (and my PR'ed binding was wrong). Let me fix that up...
Comment 7 Marko 2016-12-20 16:44:00 UTC
It's working, thank you very much, Chris.
Comment 8 Chris Hamons 2016-12-29 16:42:04 UTC
Fixed in https://github.com/xamarin/xamarin-macios/pull/1386