Setting a tag on NSProgressIndicator
Setting a tag on NSProgressIndicator
- Subject: Setting a tag on NSProgressIndicator
- From: Daniel Luis dos Santos <email@hidden>
- Date: Sat, 05 Jul 2014 21:45:14 +0100
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