Bug 1962 - Support the use of IBOutletCollection with Xcode 4 integration
Summary: Support the use of IBOutletCollection with Xcode 4 integration
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.8.2
Hardware: Macintosh Mac OS
: Normal enhancement
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2011-11-09 06:37 UTC by Chris Hardy [MSFT]
Modified: 2013-03-08 17:29 UTC (History)
8 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 FIXED

Description Chris Hardy [MSFT] 2011-11-09 06:37:10 UTC
Allow a user to create a IBOutletCollection (Along with IBAction and IBOutlets) and have that correspond back to a typed array of selected object.

See http://www.bobmccune.com/2011/01/31/using-ios-4s-iboutletcollection/ for an explanation of IBOutletCollection and this is what the Xcode side looks like http://screencast.com/t/c0NGOavR7Qn (Multi-select buttons, click and drag to the .h file and select the bottom item in the drop down of Outlet, Action and Outlet Collection).
Comment 1 Alan McGovern 2011-11-11 06:31:59 UTC
Michael, would you be able to give me a rough idea of what would be involved in implementing this? Would the right approach be:

public class OutletCollectionAttribute : OutletAttribute
{
    public string ItemType { get; set; }
}

Then add handling to sync this to/from xcode correctly?
Comment 2 Tjp 2012-01-09 22:44:35 UTC
This functionality is very useful. IBOutletCollection is used in many XIB files to aggregate groups of controls into arrays. Implementing this allows more reuse across environments and eases porting other projects. In particular when a collection of controls represents exclusive choices, or when it is desirable to operate on the controls as a group, fast iteration is commonly used to operate across the collection.
Comment 3 Josh 2012-08-08 11:04:14 UTC
I would also like to see Outlet Collections added.
Comment 4 Tony T 2012-10-15 13:20:00 UTC
Another vote for IBOutletCollection support.  Thanks.
Comment 5 Jeffrey Stedfast 2013-03-08 17:29:58 UTC
Implemented. This will be part of Xamarin Studio 4.0.3