Problems with NSCollectionView
Problems with NSCollectionView
- Subject: Problems with NSCollectionView
- From: PCWiz <email@hidden>
- Date: Tue, 20 Oct 2009 20:08:55 -0600
I'm trying to set up an NSCollectionView (I have done this
successfully in the past, but for some reason it fails this time).
I have a model class called "TestModel", and it has a NSString
property that just returns a string (just for testing purposes right
now). I then have an NSMutableArray property declaration in my main
app delegate class, and to this array I add instances of the TestModel
object.
I then have an Array Controller that has its Content Array bound the
app delegate's NSMutableArray. I can confirm that everything up to
here is working fine, NSLogging [[[arrayController arrangedObjects]
objectAtIndex:0] teststring] worked fine.
I then have all the appropriate bindings for the collection view set
up, (itemPrototype and content), and for the Collection View Item
(view). I then have a text field in the collection item view that is
bound to Collection View Item.representedObject.teststring. However
NOTHING displays in the collection view when I start the app, just a
blank white screen. What am I missing?
P.S. Im on Snow Leopard with Xcode 3.2 but im using the 10.5 sdk.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden