Skip to content

Commit 1937b88

Browse files
committed
Obsolete warning fixes
1 parent da8ebb4 commit 1937b88

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Source/Array.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public struct Array<T>
127127
#elseif CLR | ISLAND
128128
list = sequence.ToList()
129129
#elseif COCOA
130-
list = sequence.array().mutableCopy()
130+
list = sequence.ToNSArray().mutableCopy()
131131
#endif
132132
}
133133

@@ -455,7 +455,7 @@ public struct Array<T>
455455
#elseif CLR | ISLAND
456456
list.AddRange(sequence.ToList())
457457
#elseif COCOA
458-
list.addObjectsFromArray(sequence.array())
458+
list.addObjectsFromArray(sequence.ToNSArray())
459459
#endif
460460
}
461461

Source/Sequence_Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public extension ISequence /*: ICustomDebugStringConvertible*/ { // 74092: Silve
235235
}
236236
return result
237237
#elseif COCOA
238-
return self.array().sortedArrayWithOptions(0, usingComparator: { (a: id!, b: id!) -> NSComparisonResult in // ToDo: check if this is the right order
238+
return self.ToNSArray().sortedArrayWithOptions(0, usingComparator: { (a: id!, b: id!) -> NSComparisonResult in // ToDo: check if this is the right order
239239
if isOrderedBefore(a == NSNull.null ? nil : a, b == NSNull.null ? nil : b) {
240240
return .NSOrderedDescending
241241
} else {
@@ -388,7 +388,7 @@ public extension ISequence /*: ICustomDebugStringConvertible*/ { // 74092: Silve
388388
#elseif CLR || ISLAND
389389
return [T](self.ToList())
390390
#elseif COCOA
391-
return [T](self.array())
391+
return [T](self.ToNSArray())
392392
#endif
393393
}
394394

0 commit comments

Comments
 (0)