Instance Method


Initializes a newly allocated NSProgress instance.


- (instancetype)initWithParent:(NSProgress *)parentProgressOrNil userInfo:(NSDictionary<NSProgressUserInfoKey, id> *)userInfoOrNil;



The parent NSProgress object, if any, to notify when reporting progress or to consult when checking for cancellation.

The only valid values are [NSProgress currentProgress] or nil.


The user information dictionary for the progress object. May be nil.


This is the designated initializer for the NSProgress class.

See Also

Creating Progress Objects

+ discreteProgressWithTotalUnitCount:

Creates and returns an NSProgress instance with the specified totalUnitCount that is not part of any existing progress tree. The instance is initialized using initWithParent:userInfo: with the parent set to nil.

+ progressWithTotalUnitCount:

Creates and returns an NSProgress instance, initialized using initWithParent:userInfo:.

+ progressWithTotalUnitCount:parent:pendingUnitCount:

Creates and returns an NSProgress instance attached to the specified parent with the totalUnitCount set to portionOfParentTotalUnitCount.