• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Resize the NSCollectionViewItem's view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: how to use the loginItem in OSX 10.3?
  • Next by Date: Re: iPhone Development Mailing List
  • Previous by thread: Re: How can I launch Preview.app from my application for collection of images
  • Next by thread: Faceless background app that uses NSAppleScript
  • Index(es):
    • Date
    • Thread