Hi,
I have to programmatically resize the "view" of an NSCollectionViewItem,
(which is the record's view). I tried several ways, unsuccessfully.

in the awakeFromNib of the NSViewController subclass
--
NSCollectionView    *collView = [[self oCollectionVI] collectionView];
[collView setMaxItemSize:NSMakeSize(480, 200)];
[collView setMinItemSize:NSMakeSize(480, 200)];

resizing directly the view
--
recView = [[viewController oCollectionVI] view];
newRecFrame = [recView frame];
recFrame.size.height = 100;
[recView setFrame:recFrame];
[[viewContr oCollectionVI] setView:recView]; // trying to force reset

No luck with both.
It seems that the size remains the same as defined in the nib file.
Any idea?


Thanks
LL


_______________________________________________

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