Resize the NSCollectionViewItem's view
Resize the NSCollectionViewItem's view
- Subject: Resize the NSCollectionViewItem's view
- From: "gMail.com" <email@hidden>
- Date: Thu, 16 Oct 2008 18:28:31 +0200
- Thread-topic: Resize the NSCollectionViewItem's view
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@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