Hi,

I am trying to nest an NSCollectionView inside an existing collection view and 
am not having much luck.  The example I am building runs without issue, however 
the nested values do not appear.

I currently have two model classes:

@interface BlockModel : NSObject {
        NSString *blockTitle;
        NSMutableArray *blockItems;
}
@property (readwrite, retain) NSString *blockTitle;
@property (readwrite, retain) NSMutableArray *blockItems;
@end

and 

@interface BlockItem : NSObject {
        NSString *itemName;
        NSString *itemDescription;
}
@property (readwrite, retain) NSString *itemName;
@property (readwrite, retain) NSString *itemDescription;
@end

In my delegate, I have an NSMutableArray of blockModels.

Then in Interface Builder, I have an NSCollection view with a label and a 
nested NSCollection view.  The label contains the BlockModel.blockTitle (which 
displays correctly).

To get content into the nested view, I have an Array Controller with the 
Content Array bound to the Collection View Item from the parent and a model Key 
Path of: representedObject.blockItems

My nested collection view has its content bound to my Array Controller 
arrangedObjects. And my array controller is configured to be an object 
controller with the keys: itemName and itemDescription. I then have two labels 
in my nested collection view bound to the nested collection view item 
representedObject.itemName and representedObject.itemDescription.

When I execute my code, I can see a few blocks with the proper titles, however 
the nest view is completely empty.

Is there a step that I am missing?

Thanks for any help.

Brian
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to