Re: Setting a tag on NSProgressIndicator
Re: Setting a tag on NSProgressIndicator
- Subject: Re: Setting a tag on NSProgressIndicator
- From: Lee Ann Rucker <email@hidden>
- Date: Sat, 05 Jul 2014 17:52:34 -0700 (PDT)
- Thread-topic: Setting a tag on NSProgressIndicator
Put your collection view prototype in a separate nib, make its File's Owner a subclass of NSCollectionViewItem, add IBOutlets to that.
The IconCollection sample app shows how to implement collection view prototypes in separate nibs. Having it in the same nib as the collection view is really only good for trivial implementations.
----- Original Message -----
From: "Daniel Luis dos Santos" <email@hidden>
To: "Cocoa-Dev List" <email@hidden>
Sent: Saturday, July 5, 2014 1:45:14 PM
Subject: Setting a tag on NSProgressIndicator
Hello all,
I have the item prototype of a NSCollectionView. This prototype in declared in a NIB file along with its view.
Now I want to display an image in this view, but while it is loading I want to display a circular progress indicator instead of the loaded image.
I have subclassed NSView and made it the view of the item prototype, so I can trigger the image loading and the replacement of the progress
indicator with the image well.
In order for the progress indicator to start animating I have to call its startAnimation message. But I can’t have an outlet from the progress indicator
to the item view because the NSCollectionView creates new objects for its items.
So the only way I can access the subviews, is to programatically get the subviews. For easing that process I would like to set a tag on the progress indicator, but Interface builder doesn’t let me. The option appears disabled.
How can I get the progress indicator object, or any object inside the superview ?
Thanks
_______________________________________________
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
_______________________________________________
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