• 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: 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
References: 
 >Silly newbie Q about delegates (From: email@hidden)

  • Prev by Date: Re: Core data model - binding question
  • Next by Date: Re: Frameworks issue
  • Previous by thread: Re: Silly newbie Q about delegates
  • Next by thread: null selector
  • Index(es):
    • Date
    • Thread