Hey,
ich habe folgendes problem.
Ich habe einen ViewController, dem ich per Segue eine GUID übergebe. Nun der Code des View Controllers:
1. Init:
2. setProjectGuid (per Segue übergeben):
Bis dahin klappt alles wunderbar.
Nun das Problem.
Alles anzeigen
in den letzten beiden Methoden oben, ist mein object projectGuid plötzlich Nil (Adresse:0x0000000) und somit "gelöscht".
aber wieso ?
ich habe folgendes problem.
Ich habe einen ViewController, dem ich per Segue eine GUID übergebe. Nun der Code des View Controllers:
1. Init:
2. setProjectGuid (per Segue übergeben):
Bis dahin klappt alles wunderbar.
Nun das Problem.
Quellcode
- -(IBAction)clickedAddRoom:(id)sender {
- [self createNewRoom];
- }
- -(void)createNewRoom {
- WWSRoom *newRoom = [[[WWSRoom alloc] init] autorelease];
- [newRoom setName:roomName_textField.text];
- [newRoom setGuid:[WWSFunctions stringWithUUID]];
- [newRoom setProjectID:projectGuid.guid];
- WWSDatabaseController *databaseController = [[WWSDatabaseController alloc] initDatabaseWithName:@"maindatabase.sqlite"];
- [databaseController insertNewRoom:room toProjectByGUID:room.projectID];
- }
in den letzten beiden Methoden oben, ist mein object projectGuid plötzlich Nil (Adresse:0x0000000) und somit "gelöscht".
aber wieso ?