• 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
NSCollectionView issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCollectionView issues


  • Subject: NSCollectionView issues
  • From: Half Activist <email@hidden>
  • Date: Fri, 16 Oct 2009 16:32:44 +0200

Hi,
I'm using a NSCollectionView to display a stack of items (a table) but since what's display is far too complex to be laid out programmatically I went for the NSCollectionView. And it's been all problems from the beginning.
First of all with setContent that never worked no matter what I did...it only works if I bind the content to an nsarraycontroller.

Now, when I add a new item in this "table" i want to be able to scroll it to the displayed area of the view, but the frameForItemAtIndex: method only appeared in 10.6, so I decided to use the subviews and get the frame this way, and now what did I discover: Suppose I have N items and therefore N subviews in the NSCollectionView, after changing the array that now contains N + 1 items, the nscollectionview has after the update N + N + 1 subviews!
So, accessing subviews is not an option either.


If anyone knows how to do fix these bugs, and how to disable the animation, i'd be really glad. I'm considering writing an homebrew nscollectionview.

regards.
_______________________________________________

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


  • Follow-Ups:
    • Re: NSCollectionView issues
      • From: "I. Savant" <email@hidden>
    • Re: NSCollectionView issues
      • From: Jim Turner <email@hidden>
  • Prev by Date: Re: Programming Style: Method Definition with or without a semicolon.
  • Next by Date: Re: NSURLRequest SSL Mac vs iPhone
  • Previous by thread: Re: NSInvocationOperations and background Threads
  • Next by thread: Re: NSCollectionView issues
  • Index(es):
    • Date
    • Thread