0

I have a strange problem that exists only on one computer during testing. In my developer laptop its ok.

When scrolling, dragging it makes no updated.

NSCollectionView scroll

There is no custom drawing code, only NSCollectionView & NSCollectionView items subclasses with dragging items support, what's the problem?

SeregASM
  • 75
  • 12
  • You mean to say when you scroll down your collection view data is not refreshed right? – Hussain Shabbir Sep 26 '13 at 09:00
  • yes, it draws old state and state after scroll on the same place – SeregASM Sep 26 '13 at 09:20
  • well one thing is there you can post notification when you scroll as it is scrollview predefined notification. Inside that you can refersh you view. -(void) viewDidLoad { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(boundsDidChange:) name:NSViewBoundsDidChangeNotification object:[yourscrollview contentView]]; and then write these line in method where you need to send notification [[yourscrollview contentView]setPostsBoundsChangedNotifications:YES]; – Hussain Shabbir Sep 26 '13 at 09:46
  • After that on last implement these method boundsDidChange inisde that write some reload collection view code – Hussain Shabbir Sep 26 '13 at 09:49

0 Answers0