• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Window won't show a second time.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Window won't show a second time. (From: Joakim Danielson <email@hidden>)
 >Re: Window won't show a second time. (From: Yann Bizeul <email@hidden>)

  • Prev by Date: Re: NSSavePanel can't enter filename
  • Next by Date: NSSearchField Menu Enabling Troubles...
  • Previous by thread: Re: Window won't show a second time.
  • Next by thread: Re: Window won't show a second time.
  • Index(es):
    • Date
    • Thread