Skip to content

Commit 2652002

Browse files
committed
Add NSProgress string constants
1 parent cdde78c commit 2652002

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Foundation/NSProgress.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,35 +154,35 @@ public protocol NSProgressReporting : NSObjectProtocol {
154154

155155
/* How much time is probably left in the operation, as an NSNumber containing a number of seconds.
156156
*/
157-
public let NSProgressEstimatedTimeRemainingKey: String = "" // NSUnimplemented
157+
public let NSProgressEstimatedTimeRemainingKey: String = "NSProgressEstimatedTimeRemainingKey"
158158

159159
/* How fast data is being processed, as an NSNumber containing bytes per second.
160160
*/
161-
public let NSProgressThroughputKey: String = "" // NSUnimplemented
161+
public let NSProgressThroughputKey: String = "NSProgressThroughputKey"
162162

163163
/* The value for the kind property that indicates that the work being done is one of the kind of file operations listed below. NSProgress of this kind is assumed to use bytes as the unit of work being done and the default implementation of -localizedDescription takes advantage of that to return more specific text than it could otherwise. The NSProgressFileTotalCountKey and NSProgressFileCompletedCountKey keys in the userInfo dictionary are used for the overall count of files.
164164
*/
165-
public let NSProgressKindFile: String = "" // NSUnimplemented
165+
public let NSProgressKindFile: String = "NSProgressKindFile"
166166

167167
/* A user info dictionary key, for an entry that is required when the value for the kind property is NSProgressKindFile. The value must be one of the strings listed in the next section. The default implementations of of -localizedDescription and -localizedItemDescription use this value to determine the text that they return.
168168
*/
169-
public let NSProgressFileOperationKindKey: String = "" // NSUnimplemented
169+
public let NSProgressFileOperationKindKey: String = "NSProgressKindFile"
170170

171171
/* Possible values for NSProgressFileOperationKindKey entries.
172172
*/
173-
public let NSProgressFileOperationKindDownloading: String = "" // NSUnimplemented
174-
public let NSProgressFileOperationKindDecompressingAfterDownloading: String = "" // NSUnimplemented
175-
public let NSProgressFileOperationKindReceiving: String = "" // NSUnimplemented
176-
public let NSProgressFileOperationKindCopying: String = "" // NSUnimplemented
173+
public let NSProgressFileOperationKindDownloading: String = "NSProgressFileOperationKindDownloading"
174+
public let NSProgressFileOperationKindDecompressingAfterDownloading: String = "NSProgressFileOperationKindDecompressingAfterDownloading"
175+
public let NSProgressFileOperationKindReceiving: String = "NSProgressFileOperationKindReceiving"
176+
public let NSProgressFileOperationKindCopying: String = "NSProgressFileOperationKindCopying"
177177

178178
/* A user info dictionary key. The value must be an NSURL identifying the item on which progress is being made. This is required for any NSProgress that is published using -publish to be reported to subscribers registered with +addSubscriberForFileURL:withPublishingHandler:.
179179
*/
180-
public let NSProgressFileURLKey: String = "" // NSUnimplemented
180+
public let NSProgressFileURLKey: String = "NSProgressFileURLKey"
181181

182182
/* User info dictionary keys. The values must be NSNumbers containing integers. These entries are optional but if they are both present then the default implementation of -localizedAdditionalDescription uses them to determine the text that it returns.
183183
*/
184-
public let NSProgressFileTotalCountKey: String = "" // NSUnimplemented
185-
public let NSProgressFileCompletedCountKey: String = "" // NSUnimplemented
184+
public let NSProgressFileTotalCountKey: String = "NSProgressFileTotalCountKey"
185+
public let NSProgressFileCompletedCountKey: String = "NSProgressFileCompletedCountKey"
186186

187187

188188

0 commit comments

Comments
 (0)