Re: Silly newbie Q about delegates
Re: Silly newbie Q about delegates
- Subject: Re: Silly newbie Q about delegates
- From: Oleg Svin <email@hidden>
- Date: Wed, 14 Sep 2005 14:40:47 +0400
Hello,
No, it should not.
If you create (and attach with setDelegate: method) a delegate for a
table, and implement "tableViewSelectionDidChange:" method in it,
whenever the selection changes it will get called automatically. As
any other delegate method. It is what they exist for.
You choose whether to bother with implementing certain methods in a
delegate and what exactly these methods should do. The "guy" behind
the machine will do the rest.
Svin
On Sep 14, 2005, at 11:36, email@hidden wrote:
Hello all,
I have trouble understanding why the type of the delegate method in
NSTableView
- (void)tableViewSelectionDidChange:(NSNotification *)n;
is void instead of BOOL. Shouldn't it be YES if the selection has
changed and NO otherwise ?
Ewan
_______________________________________________
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
_______________________________________________
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