• 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: Nib owner's outlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nib owner's outlets


  • Subject: Re: Nib owner's outlets
  • From: Michel Fortin <email@hidden>
  • Date: Wed, 23 Jan 2002 17:59:13 -0500

Well, i meant "an instance of my subclass". My instance of PreferenceWindowController gets the message initWithWindowNibName:@"Preferences" and therefore should be itself the owner. Actions targeted to the nib's owner are working, so the owner is correctly set, I assume. It's only the outlets of my window controller that are not connected when the nib loads. How can it be?

I've done it in another application (Black Light, not to name it) and it works using mostly the same code. The openPreferences method making my custom window controller is the same, and it works. I don't understand.

Michel Fortin
Student at Universiti Laval, Quibec
email@hidden

Michel,

Michel Fortin (MF) wrote at Wed, 23 Jan 2002 07:12:46 -0500:
> In the nib file, the owner is set to my subclass. When
> the window controller loads the nib, owner's outlets do not get
> connected to to controls in the window

I'm not THAT sure since I haven't used the window controller suite for some
time, but I guess the problem is that when window controller loads a NIB, it
sets the owner to be either itself, or the document controller, if any.

Therefore, it *never* sets "your subclass" to be the owner, and thus the
outlets can't be set.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


  • Follow-Ups:
    • Re: Nib owner's outlets
      • From: Ondra Cada <email@hidden>
References: 
 >Re: Nib owner's outlets (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: NSTableView edit text-field help please?
  • Next by Date: Re: 16-bits per channel tifs
  • Previous by thread: Re: Nib owner's outlets
  • Next by thread: Re: Nib owner's outlets
  • Index(es):
    • Date
    • Thread