nscollectionview dims and brightens frequently with call to setContent:
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