Different methods for setting the delegate?
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