• 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
Newbie Q: equipping an NSDocument subclass with a window controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie Q: equipping an NSDocument subclass with a window controller


  • Subject: Newbie Q: equipping an NSDocument subclass with a window controller
  • From: email@hidden
  • Date: Tue, 11 Oct 2005 09:05:27 +0200 (CEST)
  • Importance: Normal

    Hello all,

 I'm confused over how to equip an NSDocument subclass with a window
Controller, because there are conflicting requirements :

 -it seems that I must put all the IBOutlets and IBActions inside
the window controller class (if I don't, at runtime the console
duly complains that I didn't)

 -but then how do I deal with the methods inside my NSDocument
subclass that need to access some of the outlets ? For example, the
window has a table view and the first instruction in the
dataRepresentationOfType method is

   [tableView deselectAll : nil ];

 and there's no point in making the NSDocument a subclass of its
window controller, right ?

                                                               Ewan



 _______________________________________________
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

  • Follow-Ups:
    • Re: Newbie Q: equipping an NSDocument subclass with a window controller
      • From: Sherm Pendley <email@hidden>
    • Re: Newbie Q: equipping an NSDocument subclass with a window controller
      • From: Kirt Cathey <email@hidden>
  • Prev by Date: Re: +[NSBundle bundleWithIdentifier:]
  • Next by Date: Re: Newbie Q: equipping an NSDocument subclass with a window controller
  • Previous by thread: lauch application
  • Next by thread: Re: Newbie Q: equipping an NSDocument subclass with a window controller
  • Index(es):
    • Date
    • Thread