Associate, NSView in main window, and disable objects on panel
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