Very strange behaviour of NSCollectionView
Very strange behaviour of NSCollectionView
- Subject: Very strange behaviour of NSCollectionView
- From: "Matteo Manferdini" <email@hidden>
- Date: Thu, 20 Nov 2008 10:21:30 +0100
Hi everyone.
I'm battling against a very strange behaviour of NSCollectionView. To tell
the truth this is not the first time that I have problems with this new
class, but other times I have always found a workaround.
I tried to search the web for more information, but all I can find are very
basic examples of NSCollectionView use.
Here it is: in my app I have a window attached to the main one which opens
when the user double clicks on some items. Inside this window there is the
NSCollectionView. It is bound to a normal prototype view made in interface
builder, inside of which there are normal text fields bound to the
NSCollectionViewItem representedObject properties. The collection view takes
its content from a standard NSArrayController arrangedObjects binding. So,
everything is quite standard. The problem is that when this window opens,
some of the bindings for the text fields simply don't work and these text
fields display their title text instead of the values, while others work.
The strangest part is that the bindings that don't work change randomly:
sometimes all bindings work, sometimes they don't work at all, sometimes
only some of them (randomly chosen) work. Everything is set up the same for
each binding.
This strange behaviour is present only when I open the window. If I add
items keeping the window open, everything work for the newly added items.
The old ones still do not work. If I close the window and then reopen it,
everything does not work, even the new items that worked.
Does anyone know what's happening?
Thank you very much.
Cheers.
Matteo Manferdini
Pawn Software
www.pawn-soft.com
_______________________________________________
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