FROM : Carter R. Harrison
DATE : Wed Jan 30 19:40:08 2008
Hi All,
Maybe it's just me, but I feel like the amount of documentation that
Apple has provided on the new NSCollectionView class and its
associated classes could be a bit more substantial. Here's what I'm
trying to accomplish: I have a number of NSManagedObjects, all
belonging to the same entity, and I want the various pieces of data
stored within each one displayed in an NSCollectionView - such that
each subview within the NSCollectionView represents one
NSManagedObject. How can I do this programmatically - meaning not in
IB?
I'm thinking I should create an array of NSCollectionViewItems (one
for each managed object that I have), set each item's associated view,
and then set this array as the content of the NSCollectionView. Does
this sound right or am I totally missing the point here?
Thanks,
Carter
DATE : Wed Jan 30 19:40:08 2008
Hi All,
Maybe it's just me, but I feel like the amount of documentation that
Apple has provided on the new NSCollectionView class and its
associated classes could be a bit more substantial. Here's what I'm
trying to accomplish: I have a number of NSManagedObjects, all
belonging to the same entity, and I want the various pieces of data
stored within each one displayed in an NSCollectionView - such that
each subview within the NSCollectionView represents one
NSManagedObject. How can I do this programmatically - meaning not in
IB?
I'm thinking I should create an array of NSCollectionViewItems (one
for each managed object that I have), set each item's associated view,
and then set this array as the content of the NSCollectionView. Does
this sound right or am I totally missing the point here?
Thanks,
Carter
| Related mails | Author | Date |
|---|---|---|
| Carter R. Harrison | Jan 30, 19:40 | |
| I. Savant | Jan 30, 20:01 | |
| William Turner | Jan 30, 20:13 | |
| Carter R. Harrison | Jan 30, 20:33 |






Cocoa mail archive

