Accessorizer, with just a click
of a switch will generate init methods for you. You get both 1.0 or 2.0 style depending on your settings.
You have the option to use setters or set the ivars directly.
NSString *title;
QVSong *song;
int track;
float tempo;
.h
.m
// init
- (id)init
{
if (self = [super init]) {
[self setTitle: <#(NSString *)newTitle#>];
[self setSong: <#(QVSong *)newSong#>];
[self setTrack: <#(int)newTrack#>];
[self setTempo: <#(float)newTempo#>];
}
return self;
}
In Xcode
// init
- (id)init
{
if (self = [super init]) {
title = <#(NSString *)newTitle#>;
song = <#(QVSong *)newSong#>;
track = <#(int)newTrack#>;
tempo = <#(float)newTempo#>;
}
return self;
}
Or ...
.m
or ...
In Xcode
.h
.h
.m
Initialization Methods





Features

only $15
