SRVersion Class Reference
| Inherits from | NSObject |
| Declared in | SRVersion.h |
Tasks
Properties
-
buildThe value of the build component of the version number for the current
propertySRVersionobject. -
majorThe value of the major component of the version number for the current
propertySRVersionobject. -
majorRevisionThe value of the majorRevision component of the version number for the current
propertySRVersionobject. -
minorThe value of the minor component of the version number for the current
propertySRVersionobject. -
minorRevisionThe value of the minorRevision component of the version number for the current
propertySRVersionobject. -
revisionThe value of the revision component of the version number for the current
propertySRVersionobject.
Initializing an SRVersion Object
-
– initWithMajor:minor:Initializes a new instance of the
SRVersionclass using the specified major and minor values. -
– initWithMajor:minor:build:Initializes a new instance of the
SRVersionclass using the specified major, minor, and build values. -
– initWithMajor:minor:build:revision:Initializes a new instance of the
SRVersionclass using the specified major, minor, build and revision values. -
+ tryParse:forVersion:Tries to convert the string representation of a version number to an equivalent
SRVersionobject, and returns a value that indicates whether the conversion succeeded.
Properties
majorRevision
The value of the majorRevision component of the version number for the current SRVersion object.
@property (assign, nonatomic, readwrite) NSInteger majorRevisionDeclared In
SRVersion.hminorRevision
The value of the minorRevision component of the version number for the current SRVersion object.
@property (assign, nonatomic, readwrite) NSInteger minorRevisionDeclared In
SRVersion.hClass Methods
tryParse:forVersion:
Tries to convert the string representation of a version number to an equivalent SRVersion object, and returns a value that indicates whether the conversion succeeded.
+ (BOOL)tryParse:(NSString *)input forVersion:(SRVersion **)versionParameters
- input
an
NSStringrepresenting anSRVersionto convert
- version
the parsed
SRVersionobject
Return Value
a bool representing the sucess of the parse
Declared In
SRVersion.hInstance Methods
initWithMajor:minor:
- (id)initWithMajor:(NSInteger)major minor:(NSInteger)minorParameters
- major
an
NSIntegerrepresenting the major component of a version
- minor
an
NSIntegerrepresenting the minior component of a version
Declared In
SRVersion.hinitWithMajor:minor:build:
Initializes a new instance of the SRVersion class using the specified major, minor, and build values.
- (id)initWithMajor:(NSInteger)major minor:(NSInteger)minor build:(NSInteger)buildParameters
- major
an
NSIntegerrepresenting the major component of a version
- minor
an
NSIntegerrepresenting the minior component of a version
- build
an
NSIntegerrepresenting the build component of a version
Declared In
SRVersion.hinitWithMajor:minor:build:revision:
Initializes a new instance of the SRVersion class using the specified major, minor, build and revision values.
- (id)initWithMajor:(NSInteger)major minor:(NSInteger)minor build:(NSInteger)build revision:(NSInteger)revisionParameters
- major
an
NSIntegerrepresenting the major component of a version
- minor
an
NSIntegerrepresenting the minior component of a version
- build
an
NSIntegerrepresenting the build component of a version
- revision
an
NSIntegerrepresenting the revision component of a version
Declared In
SRVersion.h