+ addSubscriberForFileURL:withPublishingHandler:
+ removeSubscriber:
NSProgressPublishingHandler
NSProgressUnpublishingHandler
Availability 有効性
Technology
@property(readonly, getter=isOld) BOOL old;
The publish and subscribe mechanism is generally level-triggered, in that when you invoke add
, the system invokes your block for every relevant published and unpublished progress object. Sometimes you need to implement edge-triggered behavior, in which you do something either exactly when new progress begins or not at all.
In the example above, the Dock doesn’t animate file icons when this method returns YES
.
There’s no reliable definition of before in this case, which involves multiple processes in a preemptively scheduled system. Don’t use this method for anything more important than best efforts at animating. It can be inaccurate due to processes coming and going from unpredictable user actions.
+ addSubscriberForFileURL:withPublishingHandler:
+ removeSubscriber:
NSProgressPublishingHandler
NSProgressUnpublishingHandler