• 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: Calling delegates explicitly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling delegates explicitly


  • Subject: Re: Calling delegates explicitly
  • From: Jeffrey Oleander <email@hidden>
  • Date: Sun, 17 May 2009 10:23:25 -0700 (PDT)

> On Sat, 2009/05/16, Jason Stephenson <email@hidden> wrote:
> From: Jason Stephenson <email@hidden>
> Subject: Re: Calling delegates explicitly
> To: "Cocoa Cocoa-Dev" <email@hidden>
> Date: Saturday, 2009 May 16, 23:04
>> Eric E. Dolecki wrote:
>> If I understand you, make a method which you can call
>> directly and call this also from your delegate selector.
>
> I was trying to say that if you implement a class that has
> the following method:
>
> -(void) setDelegate: (id) delegate;
>
> You are more or less obligated to call:
>
> [delegate delegateMethod]
>
> somewhere in your implementation. Otherwise, the delegate
> never does anything.

Unless the class that does the setDelegate: also does
[self delegateMethod]



_______________________________________________

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

  • Prev by Date: File formats for multi-doc app: packages, single files or zipped alternatives
  • Next by Date: Re: Invoice program made in Objective c/Cocoa
  • Previous by thread: Re: Calling delegates explicitly
  • Next by thread: microsoft file formats in cocoa
  • Index(es):
    • Date
    • Thread