Re: Window won't show a second time.
Re: Window won't show a second time.
- Subject: Re: Window won't show a second time.
- From: Joakim Danielson <email@hidden>
- Date: Mon, 31 May 2004 15:07:32 +0200
No, my control classes were all subclasses of NSObject and that was the
problem. By simply making them subclasses of NSWindowController it
works. The calling method to open a window now looks like this:
- (IBAction)showShowTransactions:(id)sender {
if (_wcShowTransactions == nil) { //Subclass of NSWindowController
_wcShowTransactions = [[[JDShowTransactionsControl alloc] init]
autorelease]; //initWithNibName is moved to the subclass init method.
}
[_wcShowTransactions showWindow:self];
}
Thank you all for the input.
Joakim
On 2004-05-31, at 12.42, Yann Bizeul wrote:
>
Hi,
>
>
> 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.
>
Are you sure the NIB owner is an NSWindowController or a subclass ? (I
>
mean, the custom class of "File's Owner" icon)
>
>
--
>
Yann Bizeul - yann at tynsoe.org
>
http://projects.tynsoe.org/
>
_______________________________________________
>
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.
_______________________________________________
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.