NSPredicate evaluetes NSSet as nil.
| Originator: | k.misiura | ||
| Number: | rdar://17265795 | Date Originated: | 11/06/2014 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Reproducible: | YES |
Summary:
Predicate with format [NSPredicate predicateWithFormat:@"number = %d AND name IN %@", (long long)1, [NSSet setWithObjects:@"A", @"B", nil]], evaluates supplied NSSet as nil.
This happens only when buildint with 32Bit architecture.
Steps to Reproduce:
1. Create NSPRedicate with format.
2. First part needs to compare to number that is (long long) or int64_t.
3. Second part needs to check if soemthing is contained in supplied set.
Expected Results:
Expected predicate format: "number == 1 AND name IN {"A", "B"}"
Actual Results:
Actual predicate format: "number == 1 AND name IN nil"
Version:
iOS 7.1 (11D167)
Notes:
Configuration:
iOS SDK 7.1, Device or simulator with 32bit architecture.
Attachments:
'NSPredicateInt64_BugTest.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!