• 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: Wed, 10 Mar 2004 22:43:40 +0100

On 10. Mar 2004, at 15:26, Hua Ying Ling wrote:

Yes but from my experience both NSDocument's windowControllerDidLoadNib and awakeFromNib are never called if you're using a custom windowController.

No, that is true, since then the window controller is set as the owner. I just created a NSWindowController subclasses which loads a Nib and added:

- (void)windowDidLoad { NSLog(@"%s: %d", _cmd, [[self window] isVisible]); }
- (void)awakeFromNib { NSLog(@"%s: %d", _cmd, [[self window] isVisible]); }

Both printed zero, which should mean the window was not visible. If the resizing must be done by the document, you can always let your window controller subclass call the document in one of these two methods.

If you're suggesting I set the frame before the nib loads, the problem I had with setting the frame before the nib loads is the views in the nib won't resize properly.

No, I would not suggest that, as you have no window before the nib is loaded ;)
_______________________________________________
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, SOLVED
      • From: Hua Ying Ling <email@hidden>
References: 
 >resizing a window before displaying (From: Hua Ying Ling <email@hidden>)
 >Re: resizing a window before displaying (From: Allan Odgaard <email@hidden>)
 >Re: resizing a window before displaying (From: Hua Ying Ling <email@hidden>)

  • Prev by Date: Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
  • Next by Date: Re: Forcing NSController to commit edits
  • Previous by thread: Re: resizing a window before displaying
  • Next by thread: Re: resizing a window before displaying, SOLVED
  • Index(es):
    • Date
    • Thread