On Panel Load???

Discussion in 'Mac Programming' started by satyam90, Feb 4, 2008.

  1. macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #1
    Hi,
    I am using Cocoa with Obj C. And my application is non-document one.
    I have NSPanel whose delegate I have attached is an instance derived from NSWindowController. I added a method windowDidLoad in my controller. But I observed that it is never being called. Why is it not happening as in case I use NSWindow with NSWindowController.
    Where I have to write the code for initializing the controls in the panel (apart from awake from NIB) ?
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Why not use awakeFromNib?

    Check this post on why windowDidLoad may not be working.
     

Share This Page