Re: Window closes on its own

2011-09-06 Thread Alexander Reichstadt
No, I haven't retained it explicitly. Thanks, makes sense. Am 06.09.2011 um 11:23 schrieb jonat...@mugginsoft.com: > > On 5 Sep 2011, at 21:25, Alexander Reichstadt wrote: > >> I can't due to using the garbage collection. >> >> Am 05.09.2011 um 20:47 schrieb Jens Alfke: >> >>> >>> On Sep 5,

Re: Window closes on its own

2011-09-06 Thread jonat...@mugginsoft.com
On 5 Sep 2011, at 21:25, Alexander Reichstadt wrote: > I can't due to using the garbage collection. > > Am 05.09.2011 um 20:47 schrieb Jens Alfke: > >> >> On Sep 5, 2011, at 12:08 AM, Alexander Reichstadt wrote: >> >>> the window created through the following code closes on its own after one

Re: Window closes on its own

2011-09-05 Thread Alexander Reichstadt
I can't due to using the garbage collection. Am 05.09.2011 um 20:47 schrieb Jens Alfke: > > On Sep 5, 2011, at 12:08 AM, Alexander Reichstadt wrote: > >> the window created through the following code closes on its own after one >> second. Why? > > I’m guessing there’s an extra -release call (

Re: Window closes on its own

2011-09-05 Thread Jens Alfke
On Sep 5, 2011, at 12:08 AM, Alexander Reichstadt wrote: > the window created through the following code closes on its own after one > second. Why? I’m guessing there’s an extra -release call (or insufficient -retains) and the window’s getting dealloced after the autorelease pool drains. Try

Re: Window closes on its own

2011-09-05 Thread Alexander Reichstadt
I added canBecomeKey, now it stays open. Has this been changed after 10.4? Am 05.09.2011 um 09:08 schrieb Alexander Reichstadt: > Hi, > > the window created through the following code closes on its own after one > second. Why? > > PWSuggestionsWindowController *newCon = [[PWSuggestionsWind

Window closes on its own

2011-09-05 Thread Alexander Reichstadt
Hi, the window created through the following code closes on its own after one second. Why? PWSuggestionsWindowController *newCon = [[PWSuggestionsWindowController alloc] initWithWindowNibName:@"PWSuggestionsView"]; [[newCon window] makeKeyAndOrderFront:self]; And the subclass of window