Skip to content
forked from macmade/NSPair

Foundation API suggestion for a NSPair class.

Notifications You must be signed in to change notification settings

technomorph/NSPair

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NSPair

Build Status Coverage Status Issues Status License Contact
Donate-Patreon Donate-Gratipay Donate-Paypal

About

Feature request for a NSPair object in Apple's Foundation framework:
http://openradar.appspot.com/radar?id=5050086249725952

Proposed interface:

NS_ASSUME_NONNULL_BEGIN

@interface NSPair< __covariant FirstType, __covariant SecondType >: NSObject < NSCoding, NSCopying >

@property( atomic, readwrite, strong, nullable ) FirstType  first;
@property( atomic, readwrite, strong, nullable ) SecondType second;

- ( instancetype )initWithFirstValue: ( nullable FirstType )first secondValue: ( nullable SecondType )second NS_DESIGNATED_INITIALIZER;

@end

NS_ASSUME_NONNULL_END

License

NSPair is released under the terms of the MIT license.

Repository Infos

Owner:          Jean-David Gadina - XS-Labs
Web:            www.xs-labs.com
Blog:           www.noxeos.com
Twitter:        @macmade
GitHub:         github.com/macmade
LinkedIn:       ch.linkedin.com/in/macmade/
StackOverflow:  stackoverflow.com/users/182676/macmade

About

Foundation API suggestion for a NSPair class.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%