• 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: Pref Panes and Instance Variables?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pref Panes and Instance Variables?


  • Subject: Re: Pref Panes and Instance Variables?
  • From: Andreas Monitzer <email@hidden>
  • Date: Sun, 13 Jan 2002 11:23:46 +0100

On Sunday, January 13, 2002, at 09:34 , Josh M. Hurd wrote:

OK I figured out what was wrong.

I had instantiated my subclass of NSPrefPane in Interface Builder making my connections to that instance.
This caused a second instance of my subclass to be created when the Nib loaded. Who knows which one had control, I think they both had a little here and there...
I thought this was how the Apple docs explained it but I must have mis-read something...

The correct answer is change the class of the File's Owner to my subclass of NSPrefPane then make connections to that.

The retain count thing will bite you anyways. Use [[<class> alloc] init] when you want to keep something in memory.

Read the article at StepWise about that subject.

andy


  • Follow-Ups:
    • Re: Pref Panes and Instance Variables?
      • From: "Josh M. Hurd" <email@hidden>
References: 
 >Re: Pref Panes and Instance Variables? (From: "Josh M. Hurd" <email@hidden>)

  • Prev by Date: Re: I want to make a seamless voice chat
  • Next by Date: Re: passwd
  • Previous by thread: Re: Pref Panes and Instance Variables?
  • Next by thread: Re: Pref Panes and Instance Variables?
  • Index(es):
    • Date
    • Thread