• 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: Question about relation between File's Owner, First Responder and controller object...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about relation between File's Owner, First Responder and controller object...


  • Subject: Re: Question about relation between File's Owner, First Responder and controller object...
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 12 Apr 2005 20:32:43 +0200

Mikael,

On 12.4.2005, at 6:16, Mikael Arctaedius wrote:

... Normally though, the NSDocument subclass -- the document NIB's File's Owner -- is the document controller.

OK, I just follow a recommentation from Garfinkel&Mahoney (Building Cooca Applications A Step-by-Step Guide page 328) to split the functionality into a controller and a document class.

I've got only the old book, which pre-dates the document architecture.

Anyway, if they recommend to do this, presumably they also show *how* to do this?

In the MainMenu, you'll connect the menu action to First Responder. That will ensure the appropriate NSDocument subclass (of the active window) would get the message, and the redirection then would ensure the SystemController instance of yours--instantiated from the NIB--gets the message to do the work.

But the First Responder does not have the desired actions.

You can add any action (even a non-existent one :)) to the First Responder in IB. Just doubleclick the FR, and the editor opens in the Inspector panel.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Question about relation between File's Owner, First Responder and controller object... (From: Mikael Arctaedius <email@hidden>)
 >Re: Question about relation between File's Owner, First Responder and controller object... (From: Ondra Cada <email@hidden>)
 >Re: Question about relation between File's Owner, First Responder and controller object... (From: Mikael Arctaedius <email@hidden>)
 >Re: Question about relation between File's Owner, First Responder and controller object... (From: Ondra Cada <email@hidden>)
 >Re: Question about relation between File's Owner, First Responder and controller object... (From: Mikael Arctaedius <email@hidden>)

  • Prev by Date: [Moderator] Re: Tiger unleashed !
  • Next by Date: When are bound variables initialized?
  • Previous by thread: Re: Question about relation between File's Owner, First Responder and controller object...
  • Next by thread: Order of instantiation within a NIB
  • Index(es):
    • Date
    • Thread