• 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
Re: resizing a window before displaying
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: resizing a window before displaying
      • From: Hua Ying Ling <email@hidden>
References: 
 >resizing a window before displaying (From: Hua Ying Ling <email@hidden>)

  • Prev by Date: resizing a window before displaying
  • Next by Date: Re: Convert Charatcers
  • Previous by thread: resizing a window before displaying
  • Next by thread: Re: resizing a window before displaying
  • Index(es):
    • Date
    • Thread