• 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: windowDidLoad doesn't run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windowDidLoad doesn't run


  • Subject: Re: windowDidLoad doesn't run
  • From: Paul <email@hidden>
  • Date: Mon, 12 Mar 2007 17:56:03 -0400

Although I saw your reply right after you sent it, I just realized this reply has been sitting in my Drafts folder since then.

What I got from the document didn't help.

Based on this document, it looks like I should take control of - (void)windowControllerDidLoadNib:(NSWindowController *)windowController
but that never gets called either.


I basically wound up doing a one shot .1 second NSTimer, and all works fine. Mind you, I would love to know why things didn't work like I expected, but I'm good for now.

On Feb 22, 2007, at 10:58 PM, mmalc crawford wrote:


On Feb 22, 2007, at 6:22 PM, Paul wrote:

I have a program the sometimes needs to put a sheet up on the main window as soon as the program runs. Problem is, if I put the method call in awakeFromNib, the sheet opens before the window. If I put it in windowDidLoad, it never runs because windowDidLoad never runs.
I use windowDidLoad in other classes (Preferences, etc), and they work properly, but in the main part of my program, which is a sub class of NSDocument, nothing.


<http://developer.apple.com/documentation/Cocoa/Conceptual/ Documents/Tasks/FAQ.html#//apple_ref/doc/uid/20000954-1081016>
"When can I do setup operations on my user interface objects?"


mmalc


***** Paul ***** email@hidden email@hidden ICQ #11034669

-----

The only thing worse than having a cat is having a GUILTY-LOOKING cat!

     Drabble - by Kevin Fagin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: windowDidLoad doesn't run
      • From: Klaus Backert <email@hidden>
  • Prev by Date: PrefPane subclass error
  • Next by Date: Sharing a content view between two NSViews
  • Previous by thread: Re: PrefPane subclass error - fixed
  • Next by thread: Re: windowDidLoad doesn't run
  • Index(es):
    • Date
    • Thread