CollectionView Guide Obsoleted in XS 6.1.1

AllanChin.6924AllanChin.6924 USUniversity ✭✭✭
edited September 2016 in Xamarin.iOS

The Xamarin guide, https://developer.xamarin.com/guides/mac/user-interface/working-with-collection-views/, on how to implement a CollectionView in a Xamarin.Mac app appears to be obsoleted in XS version 6.1.1. I've gotten to the point where I needed an Array Controller, but the IB no longer supports simply dragging and dropping one onto the IB Designer Surface. I can drop it onto the IB's Document Outline but only into a particular scene. And after that, the Content Array binding option as specified in the guide is not available. Not sure what else may have changed after this step since I haven't been able to get past it.

Can we get a revised guide for this?

Thanks

Tagged:

Posts

  • AllanChin.6924AllanChin.6924 USUniversity ✭✭✭

    Here's my System information.

    === Xamarin Studio Community ===

    Version 6.1.1 (build 15)
    Installation UUID: 036dad07-9860-4965-94a9-aa8abd5b8698
    Runtime:
    Mono 4.6.1 (mono-4.6.0-branch-c8sr0/abb06f1) (64-bit)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 406010003
    

    === NuGet ===

    Version: 3.4.3.0

    === Xamarin.Profiler ===

    Not Installed

    === Apple Developer Tools ===

    Xcode 7.3.1 (10188.1)
    Build 7D1014

    === Xamarin.Mac ===

    Version: 2.10.0.103 (Xamarin Studio Community)

    === Xamarin.iOS ===

    Version: 10.0.1.8 (Xamarin Studio Community)
    Hash: 3983064
    Branch: cycle8-sr0-xi
    Build date: 2016-09-23 15:34:54-0400

    === Xamarin.Android ===

    Version: 7.0.1.2 (Xamarin Studio Community)
    Android SDK: /Users/hpadmin/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
    6.0 (API level 23)

    SDK Tools Version: 25.1.2
    SDK Platform Tools Version: 24.0.0
    SDK Build Tools Version: 23.0.2

    Java SDK: /usr
    java version "1.7.0_71"
    Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

    Android Designer EPL code available here:
    https://github.com/xamarin/AndroidDesigner.EPL

    === Xamarin Android Player ===

    Not Installed

    === Build Information ===

    Release ID: 601010015
    Git revision: fa52f02641726146e2589ed86ec4097fbe101888
    Build date: 2016-09-22 08:03:02-04
    Xamarin addins: 75d65712af93d54dc39ae4c42b21dfa574859fd6
    Build lane: monodevelop-lion-cycle8-sr0

    === Operating System ===

    Mac OS X 10.11.6
    Darwin hpadmins-Mini.sdg.rd.hpicorp.net 15.6.0 Darwin Kernel Version 15.6.0
    Mon Aug 29 20:21:34 PDT 2016
    root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    I've contacted the owner of that documentation to take a look. In the mean time, this example may be useful:

    https://github.com/xamarin/mac-samples/tree/master/MacDatabinding-Storyboard

  • DaveHuntDaveHunt USMember ✭✭✭✭✭

    Note that the version of Xamarin Studio doesn't have anything to do with what works in IB. IB is part of Xcode, not part of Xamarin Studio. So the version of Xcode you're using may have obsoleted the guide, not the version of Xamarin Studio.

    Are you working with a storyboard or a .xib file? There's a note in the guide that Collection Views are unavailable in storyboards as of Xcode 7+ and OS X 10.11+, but should still be working in .xib files.

  • AllanChin.6924AllanChin.6924 USUniversity ✭✭✭

    Whoops, I forgot about working within the .xib file. Sorry about that guys. I opened-up my view and was able to drag a CollectionView onto it, and was able to drop an Array Controller onto the design surface. But now no CollectionViewItem prototype shows up either on the Design Surface or the Document Outline. Any idea how to get it to show up so I can design it? See attached screenshot.

    Thanks

  • AllanChin.6924AllanChin.6924 USUniversity ✭✭✭

    Sorry again guys. I also forgot that if the CollectionViewItem prototype doesn't show up the 1st time, you have to delete the CollectionView and then re-add it. So one shouldn't do much work until at least the CollectionView/CollectionViewItem gets added successfully. And it seems once it gets successfully added, it stays through multiple re-openings of the .xib file.

Sign In or Register to comment.