NSCollectionView and Core Data problem
NSCollectionView and Core Data problem
- Subject: NSCollectionView and Core Data problem
- From: Adhamh Findlay <email@hidden>
- Date: Fri, 8 Feb 2008 17:56:14 -0600
Hello...
I have an NSCollectionView that I am trying to use with Core Data and
I can't seem to get the view to actually display data.
I have an NSArrayController and I'm doing a fetch and populating the
controller using its setContent method. The controller is bound to the
NSCollectionView's content binding and the controller key is
arrangedObjects.
The prototype view contains only an NSTextField. Its value is bound
to the Collection View Item and the key path is
representedObject.name. (The objects in the array controller have a
"name" attribute.
I've used gdb and the controller is content is populated and it
appears to be bound correctly. The problem is that the text field
doesn't appear in the collection, not even empty ones.
Any ideas? I think the prototype automatically sets its represented
object based on the controller bound to the collection. Is that
correct?
Any help would be appreciated. Thanks,
Adhamh
_______________________________________________
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