SRVersion Class Reference
Inherits from | NSObject |
Declared in | SRVersion.h |
Tasks
Properties
-
build
The value of the build component of the version number for the current
propertySRVersion
object. -
major
The value of the major component of the version number for the current
propertySRVersion
object. -
majorRevision
The value of the majorRevision component of the version number for the current
propertySRVersion
object. -
minor
The value of the minor component of the version number for the current
propertySRVersion
object. -
minorRevision
The value of the minorRevision component of the version number for the current
propertySRVersion
object. -
revision
The value of the revision component of the version number for the current
propertySRVersion
object.
Initializing an SRVersion Object
-
– initWithMajor:minor:
Initializes a new instance of the
SRVersion
class using the specified major and minor values. -
– initWithMajor:minor:build:
Initializes a new instance of the
SRVersion
class using the specified major, minor, and build values. -
– initWithMajor:minor:build:revision:
Initializes a new instance of the
SRVersion
class using the specified major, minor, build and revision values. -
+ 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.
Properties
majorRevision
The value of the majorRevision component of the version number for the current SRVersion
object.
@property (assign, nonatomic, readwrite) NSInteger majorRevision
Declared In
SRVersion.h
minorRevision
The value of the minorRevision component of the version number for the current SRVersion
object.
@property (assign, nonatomic, readwrite) NSInteger minorRevision
Declared In
SRVersion.h
Class 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 **)version
Parameters
- input
an
NSString
representing anSRVersion
to convert
- version
the parsed
SRVersion
object
Return Value
a bool representing the sucess of the parse
Declared In
SRVersion.h
Instance Methods
initWithMajor:minor:
- (id)initWithMajor:(NSInteger)major minor:(NSInteger)minor
Parameters
- major
an
NSInteger
representing the major component of a version
- minor
an
NSInteger
representing the minior component of a version
Declared In
SRVersion.h
initWithMajor: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)build
Parameters
- major
an
NSInteger
representing the major component of a version
- minor
an
NSInteger
representing the minior component of a version
- build
an
NSInteger
representing the build component of a version
Declared In
SRVersion.h
initWithMajor: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)revision
Parameters
- major
an
NSInteger
representing the major component of a version
- minor
an
NSInteger
representing the minior component of a version
- build
an
NSInteger
representing the build component of a version
- revision
an
NSInteger
representing the revision component of a version
Declared In
SRVersion.h