Im getting the following error:
on the line self = [super init];
cannot assign self outside method init family
also getting yellow triangles on all self.whatever = whatever;
local declaration of "whatever" hides instance variable
@synthesize firstName, lastName, emailAdress, password, admin;
//current course funkade med nil men inte @"" vrf ;P
-(id) init
{
return [self initwithName:@"" lastName:@"" password:@"" admin:@"" currentCourse:nil];
}
-(id) initwithName:(NSString *) firstName
lastName:(NSString *) lastName
password:(NSString *) password
admin:(NSString *) admin
currentCourse:(NSDictionary *) course
{
self = [super init];
if (self) {
self.firstName = firstName;
self.lastName = lastName;
self.password = password;
self.admin = admin;
}
return self;
}