Making object of IB class file

Discussion in 'Mac Programming' started by xmax, Feb 2, 2009.

  1. xmax macrumors member

    Jul 3, 2008
    I have made an application where I have Settings Object available in IB. this object have some outlets and actions available.
    Now i need to call some methods of this class from other class. so , i am making an object like:

    I am not able to load the states of outlets. on debugging i came to know all the outlets are not initialized.

    can anyone tell me what is a problem. and i how can i resolve it ?
  2. kainjow Moderator emeritus


    Jun 15, 2000
    Assuming your class is properly loading a nib already, you most likely are trying to access the outlets too early, before the nib has loaded. If this is an NSWindowController subclass, call [self window] to load the nib in your loadSettings method.

Share This Page