UIApplication applicationIconBadgeNumber can't take negative values but is defined as NSInteger
Originator: | guillaume.algis | ||
Number: | rdar://34460399 | Date Originated: | 15-sept.-2017 05:03 PM |
Status: | Open | Resolved: | |
Product: | iOS + SDK | Product Version: | 11.0 (15A372) |
Classification: | Enhancement | Reproducible: | Always |
Summary: applicationIconBadgeNumber does not seems to do anything with negative values, and the observed behavior is the same as setting it to zero. So shouldn't it be defined as `NSUInteger` instead of `NSInteger` to express this behavior? Steps to Reproduce: Set applicationIconBadgeNumber to a negative value Expected Results: If applicationIconBadgeNumber was defined as NSUInteger, we'd get a compiler warning us that the assigned value made no sense Actual Results: The value is accepted without any warning, masking a potential programming error Version: 11.0 (15A372) Notes:
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!