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 = [[PWSuggestionsWindowController
> alloc] initWithWindowNibName:@"PWSuggestionsView"];
> [[newCon window] makeKeyAndOrderFront:self];
>
> And the subclass of window:
>
> - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle
> backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
> {
> self = [super initWithContentRect:contentRect
> styleMask:NSBorderlessWindowMask backing:bufferingType defer:NO];
> if (self) {
> // Initialization code here.
> }
>
> return self;
> }
>
> Neither windowShouldClose is called on this occasion. It seems it is so known
> and obvious it is not documented any place one can easily google or find.
> This wasn't the case pre-10.5 though afaik.
>
> Please, can someone shed light on this?
>
> Thank you
> Alex
>
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]