I want to be able to pick a document template out of a list. This is a quick action, and the helping window doesn't have to stick around for long.
How do I have to deal with the release call in a nice and clean design? Here, the release call is called before the user makes a choice.
Thanks.
How do I have to deal with the release call in a nice and clean design? Here, the release call is called before the user makes a choice.
Thanks.
Code:
-(IBAction) newDocument:(id)sender {
WinController *wc = [[WinController alloc] init];
[wc setoptions:options];
[wc setselector:@selector(createDocumentFromTemplate:)];
[wc showwindow:nil];
[wc release];
}
-(void) createDocumentFromTemplate:(NSString *) template {
//add document
}