We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9c84b5 commit 388137fCopy full SHA for 388137f
Foundation/NSArray.swift
@@ -673,7 +673,9 @@ public class NSMutableArray : NSArray {
673
}
674
675
public func replaceObjectsInRange(range: NSRange, withObjectsFromArray otherArray: [AnyObject], range otherRange: NSRange) {
676
- replaceObjectsInRange(range, withObjectsFromArray: Array(otherArray[otherRange.toRange()!]))
+ var list = [AnyObject]()
677
+ otherArray.bridge().getObjects(&list, range:otherRange)
678
+ replaceObjectsInRange(range, withObjectsFromArray:list)
679
680
681
public func replaceObjectsInRange(range: NSRange, withObjectsFromArray otherArray: [AnyObject]) {
0 commit comments