-
Notifications
You must be signed in to change notification settings - Fork 70
Improve objc2::foundation #67
Copy link
Copy link
Closed
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Milestone
Metadata
Metadata
Assignees
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Collection of ideas to improve
objc2-foundationAdd more iterator methods toMoved to Proper iteration over Foundation types #304INSArrayandINSMutableArrayNSArray::objects_in_range(out of bounds?)AddThis is already available via.INSString::to_stringto avoid having to useautoreleasepoolDisplayNSNumbervs.NSValueshould work - done in ImproveNSValueand addNSNumber#226NSString/NSDataand subclasses, so thatinitWithBytesNoCopycan work?struct MyNSString<'a>(NSString, PhantomData<&'a >)NSDataindex with ranges /SliceIndex?NSSizevalidity: Rework Foundation geometry types #260Add these classes/structs that are used by
winit:NSThreadNSStringNSAttributedStringNSAttributedMutableStringNSArrayNSProcessInfoNSDictionaryNSDataNSFastEnumerationNSNotificationCenterNSTimeIntervalNSPointNSRectNSSizeNSRangeAn furthermore these that are available in
cocoa-foundation:NSOperatingSystemVersionNSProcessInfomethodsNSEnumerationOptions?NSDateNSRunLoopNSURLNSBundleNSDatabase64 functionality?NSUserDefaultsAnd a few that makes sense to do:
NSSet/NSMutableSet- AddNSSetandNSMutableSet#245NSMutableDictionary- AddNSMutableDictionary#249And many more, since #264