Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.