Impossible to retrieve value from [NSEntityDescription attributesByName].
| Originator: | k.misiura | ||
| Number: | rdar://15360109 | Date Originated: | 31/10/2013 |
| Status: | Closed | Resolved: | 03/06/2014 |
| Product: | OS X SDK | Product Version: | 10.9 |
| Classification: | Reproducible: |
Summary: It is impossible to retrieve value from NSDictionary, returned by [NSEntityDescription attributesByName], using NSString as a key. This issue is only reproducible if: — binary is compiled on OSX 10.9 with Xcode 5, — binary is executed on OSX 10.9, — [NSEntityDescription attributesByName] returns dictionary with more then one object, — the key must be must be of “__NSCFString” class. This bug is not reproducible if binary was compiled on OSX 10.8, or binary that was compiled on OSX 10.9 is executed on OSX 10.8. Steps to Reproduce: First way to reproduce bug: 1. Have a Apple computer running OSX 10.9 with Xcode 5. 2. Build attached project “PFEncodedStringTest 2 attributes” and run it. 3. Monitor the log. Second way to reproduce it: 1. Have a Apple computer running OSX 10.9 with Xcode 5. 2. Create new project with core data. 3. Create entity with 2 or more attributes. 4. Get attributesByName NSDictionary from that entity’s description (NSEntityDescription). 5. Generate a NSString key that is of “NSCFString” class. 6. Try to retrieve object for that key, from attributesByName NSDictionary. Expected Results: NSDictionary should return NSAttributeDescription object for supplied key. Actual Results: NSDictionary returns nil. Version: Xcode - Version 5.0.1 (5A2053) OSX - Version 10.9 (13A603) Notes: Configuration: Entity must have 2 attributes or more. Ask object for value, from NSDictionary retuned by [NSEntityDescription attributesByName], with NSString key that is of “NSCFString” class. Compile project on OSX 10.9 with Xcode 5. Execute binary on OSX 10.9. Attachments: 'PFEncodedStringTest.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!