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 (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com