Re: Silly newbie Q about delegates
Re: Silly newbie Q about delegates
- Subject: Re: Silly newbie Q about delegates
- From: j o a r <email@hidden>
- Date: Wed, 14 Sep 2005 11:15:57 +0200
On 14 sep 2005, at 09.36, email@hidden wrote:
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 ?
You're a bit confused here - void is the return value. I doesn't make
any sense for the delegate to return a YES / NO to indicate if the
selection has changed or not - You only get this method if the
selection has changed.
Perhaps you're thinking of "selectionShouldChangeInTableView:"?
j o a r
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