• 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
Different methods for setting the delegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Different methods for setting the delegate?


  • Subject: Different methods for setting the delegate?
  • From: "Frank Bettger" <email@hidden>
  • Date: Thu, 30 Aug 2007 09:06:59 +0200

A newbie question. In Hillegass book there is a small App called SpeakLine
where he uses three objects: NSSpeechSynthesizer, NSTableView and
AppController. Both NSSpeechSynthesizer and NSTableView use AppController as
delegate. In the book different methods are used to set the delegate
instance variables of NSSpeechSynthesizer and NSTableView.

For NSSpeechSynthesizer the following programmatic method is used:

// AppController.m
…
-(id) init
{
    …
    [speechSynth setDelegate:self];
    …
}
…

For NSTableView the following non-programmatic method is used:

In the InterfaceBuilder control-drag from the table view to the
AppController and set the delegate outlet.

My question is if these two methods or equivalent and why he uses different
methods for NSSpeechSynthesizer and NSTableView.

Thanks Frank
_______________________________________________

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: Different methods for setting the delegate?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: NSMutableString appendString: "appending self" allowed?
  • Next by Date: [solved] Re: Core Data / Bindings problem
  • Previous by thread: Re: How to create .widgetplugin with java source file??
  • Next by thread: Re: Different methods for setting the delegate?
  • Index(es):
    • Date
    • Thread