• 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
Associate, NSView in main window, and disable objects on panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Associate, NSView in main window, and disable objects on panel


  • Subject: Associate, NSView in main window, and disable objects on panel
  • From: Claus Atzenbeck <email@hidden>
  • Date: Sun, 5 Aug 2007 01:34:59 +0200 (CEST)

Hi all,

I'm relatively new to Cocoa; so these are three beginner's questions:

I have a document-based Cocoa application. The class AppController is
instantiated in MainMenu.nib. MyDocument.nib contains the NSView MyView.

(1) What is the standard way in Cocoa to make all instances of MyView
aware of AppController? (I want to set pointers to AppController in all
instances of MyView.) -- Via notification? Via delegate? Via ...?

(2) How can I get the (only) MyView instance of the current main window
of my application? [NSApp mainWindow] returns the main window, but how
do I get the only instance of MyView within that window?

(3) Is there a single command to disable all buttons, text fields, etc.
of an NSPanel?

Thanks,
Claus
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Associate, NSView in main window, and disable objects on panel
      • From: Daniel Staal <email@hidden>
  • Prev by Date: Re: NSTableView searching and predicates
  • Next by Date: Re: NSTableView searching and predicates
  • Previous by thread: Re: offtopic: best way of plainng overall structure of programs/functions etc.
  • Next by thread: Re: Associate, NSView in main window, and disable objects on panel
  • Index(es):
    • Date
    • Thread