• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting a tag on NSProgressIndicator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Setting a tag on NSProgressIndicator (From: Daniel Luis dos Santos <email@hidden>)

  • Prev by Date: Setting a tag on NSProgressIndicator
  • Next by Date: Re: awakeFromNib multiple objects - all connected?
  • Previous by thread: Setting a tag on NSProgressIndicator
  • Next by thread: Looking for OS X 10.9 and above contract developer with immediate availability
  • Index(es):
    • Date
    • Thread