Window won't show a second time.
Window won't show a second time.
- Subject: Window won't show a second time.
- From: Joakim Danielson <email@hidden>
- Date: Sun, 30 May 2004 17:44:04 +0200
I have a number of methods to show different windows in a class called
AppController. An example:
- (IBAction)showAdminTransactions:(id)sender {
if (_wcTransactions == nil) {
JDTransactionControl *ctrl = [[[JDTransactionControl alloc] init]
autorelease];
_wcTransactions = [[NSWindowController alloc]
initWithWindowNibName:@"Transaction" owner:ctrl];
}
[_wcTransactions showWindow:self];
}
where _wcTransactions is an instance variable and JDTransactionControl
is the C in MVC for this gui. The method are targets of menu actions in
my MainMenu.nib
The problem is that if I open and close a window, it will not display
itself again if I choice the same menu item again. The method gets
called but the message [_wcTransactions showWindow:self] won't do
anything the second time.
Joakim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.