Re: resizing a window before displaying
Re: resizing a window before displaying
- Subject: Re: resizing a window before displaying
- From: Allan Odgaard <email@hidden>
- Date: Tue, 9 Mar 2004 17:45:30 +0100
On 9. Mar 2004, at 17:26, Hua Ying Ling wrote:
[[NSDocumentController sharedDocumentController]
openUntitledDocumentOfType:@"DocumentType" display:NO];
Is your app documented based? In that case simply overload
windowControllerDidLoadNib:, at least the window returns NO for visible
here.
Is there a better way to do this?
You might also try to implement awakeFromNib -- but I don't really
understand your code, because wouldn't it be you who send a
makeKeyAndOrderFront: to the window/window controller? So could you not
simply obtain [controller window] before opening the window, and set
the frame (the Nib will load on a request for the window)?
_______________________________________________
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.