• 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
Window won't show a second time.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Window won't show a second time.
      • From: Yann Bizeul <email@hidden>
  • Prev by Date: Re: Newbie Alert: NSMovieView with control won't update when movie changes.
  • Next by Date: Re: Help with NSAffineTransform?
  • Previous by thread: Re: Newbie Alert: NSMovieView with control won't update when movie changes.
  • Next by thread: Re: Window won't show a second time.
  • Index(es):
    • Date
    • Thread