• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSCollectionView and Core Data problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Objective-C++
  • Next by Date: Re: Leopard and Tiger Notification Differences?
  • Previous by thread: re: Core Data: consequences of disabling the undoManager
  • Next by thread: Curious about NSHashTable
  • Index(es):
    • Date
    • Thread