• 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: -document works inconsistently in NSWindowController subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -document works inconsistently in NSWindowController subclass


  • Subject: Re: -document works inconsistently in NSWindowController subclass
  • From: Charlton Wilbur <email@hidden>
  • Date: Fri, 19 Nov 2004 05:21:41 -0500

On Fri, 19 Nov 2004 04:36:50 -0500, Charlton Wilbur <email@hidden> wrote:

> This may wind up just being confessional debugging, but I'm stumped.

Which indeed it was.  After about 6 hours of banging my head on the
problem, I posted a question to a mailing list, and within half an
hour of hitting "send" I figured out what I was doing wrong.

For those following along at home:  when you create a subclass of
NSWindowController, the obvious thing to do is to *instantiate* your
NSDocument subclass in IB.  This is wrong.  What you should do instead
is set File's Owner to be of your NSDocument subclass, and have all
your actions and outlets connect to File's Owner instead.

Thanks for listening, all.

Charlton


--
Charlton Wilbur
email@hidden
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >-document works inconsistently in NSWindowController subclass (From: Charlton Wilbur <email@hidden>)

  • Prev by Date: Problems with retreiving objects from an array
  • Next by Date: Re: Setting up multiple Dependent Keys
  • Previous by thread: -document works inconsistently in NSWindowController subclass
  • Next by thread: Problems with retreiving objects from an array
  • Index(es):
    • Date
    • Thread