mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Import NSDictionary as Dictionary<NSObject, AnyObject>
Fixes <rdar://problem/16870626>. Swift SVN r18907
This commit is contained in:
@@ -1045,12 +1045,7 @@ extension String {
|
||||
/// Returns a dictionary object initialized with the keys and
|
||||
/// values found in the `String`.
|
||||
func propertyListFromStringsFileFormat() -> Dictionary<String, String> {
|
||||
var result = Dictionary<String, String>()
|
||||
_ns.propertyListFromStringsFileFormat().enumerateKeysAndObjectsUsingBlock {
|
||||
key, value, stop in
|
||||
result[key! as String] = value! as? String
|
||||
}
|
||||
return result
|
||||
return _ns.propertyListFromStringsFileFormat() as Dictionary<String, String>
|
||||
}
|
||||
|
||||
// - (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)aSet
|
||||
|
||||
Reference in New Issue
Block a user