I have a very simple setup with NSCollectionView . I have a subclass NSCollectionViewItem that is used as itemPrototype to represent a collection. The collection view element has the form.
Using Interface Builder, I added an NSImageView element to the collection element view and associated the IBOutlet with an instance of a subclass of the collection collection element. The property for IBOutlet uses retain to manage memory.
My goal is to hide or show this image when the selection state for the collection view item changes. But in the setSelected: method setSelected: my property for representing the image is zero, although I am 100% sure that its output is connected, its property is set to save, and I have not disabled or not released the image.
I had a similar problem with collection items in which the activity indicator added to the view was always zero. Why is this happening and what do I need to do to fix it?
source share