• 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
Re: Silly newbie Q about delegates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Silly newbie Q about delegates (From: email@hidden)

  • Prev by Date: Re: Final attempt regarding core data / opengl...
  • Next by Date: Re: NSArrayController selectNext updating late
  • Previous by thread: Silly newbie Q about delegates
  • Next by thread: Re: Silly newbie Q about delegates
  • Index(es):
    • Date
    • Thread