• 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
Responding from a delegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Responding from a delegate?


  • Subject: Responding from a delegate?
  • From: Sam Thorne <email@hidden>
  • Date: Thu, 15 Apr 2004 15:55:59 +0100

Hello list,

A total newbie question this; I'm coming from a ECMA-262 & Lingo background so keep it simple for stupid (me)!

I've been playing around with adding NSToolbar to a document window in a multi-doc app; no problem there the toolbar appears.
The problem is the toolbar methods are delegated, as I was following a tutorial that recommended doing so.

What I can't get my head round is how to respond from the delegate object back to the delegator, specifically one of the IBActions is meant to open a drawer in the window of the window controller that is the delegator.
Do I have to set an instance variable referring back to the delegator in the delegate? This seems a bit messy.

Maybe the bigger issue here is I haven't really worked out messaging between objects...

Thanks for any help!

Sam
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Responding from a delegate?
      • From: Kay Roepke <email@hidden>
    • Re: Responding from a delegate?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: New book on its way!!!
  • Next by Date: RE: counting characters
  • Previous by thread: NSController article at O'Reilly
  • Next by thread: Re: Responding from a delegate?
  • Index(es):
    • Date
    • Thread