• 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 dims and brightens frequently with call to setContent:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nscollectionview dims and brightens frequently with call to setContent:


  • Subject: nscollectionview dims and brightens frequently with call to setContent:
  • From: Michael Hanna <email@hidden>
  • Date: Thu, 10 Nov 2011 18:09:55 -0500

in an nscollectionview, I call setContent: every time I get a new item for
the collection view. The annoying side-effect of this is that the whole
view dims and brightens each time setContent: is called.. not visually
appealing.

I've tried disabling CATransactions while calling setContent: but that
seems no change.

[CATransaction begin];
 [CATransaction setValue:(id)kCFBooleanTrue
forKey:kCATransactionDisableActions];
[self setGridContent:[[tempArray copy] autorelease]];
 [CATransaction commit];

It was suggested to me to use an nsarraycontroller and bind that to
gridContent. I tried:

[gridContentController bind:@"contentArray" toObject:self
withKeyPath:@"gridContent"
options:nil];

and in the xib I bound nscollectionview content to gridContentController
-arrangedObjects. This appears to have no effect. Any ideas/suggestions?
_______________________________________________

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 dims and brightens frequently with call to setContent:
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Logging in Xcode 4.2
  • Next by Date: DTS
  • Previous by thread: Cocoaheads - Silicon Valley November Meeting
  • Next by thread: Re: nscollectionview dims and brightens frequently with call to setContent:
  • Index(es):
    • Date
    • Thread