• 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: Bill Bumgarner <email@hidden>
  • Date: Sat, 16 May 2009 21:14:58 -0700

On May 16, 2009, at 9:04 PM, Jason Stephenson wrote:
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.

However, if you generalize the question, as Bill seems to have done, then normally, you never call

[delegate delegateMethod]

because that is up to the class that implements -setDelegate:.

To be clear-- and I'd suggest an END-OF-THREAD until the OP posts a followup question with more content-- I didn't generalize anything. The OP's question was:
Can we call delegates explicitly, Please reply soon.

My response was similarly terse.

Without any more details, there isn't a heck of a lot to actually answer.

b.bum


_______________________________________________

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


References: 
 >Calling delegates explicitly (From: Sourabh Sahu <email@hidden>)
 >Re: Calling delegates explicitly (From: Bill Bumgarner <email@hidden>)
 >Re: Calling delegates explicitly (From: Uli Kusterer <email@hidden>)
 >Re: Calling delegates explicitly (From: Jason Stephenson <email@hidden>)
 >Re: Calling delegates explicitly (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Calling delegates explicitly (From: Jason Stephenson <email@hidden>)

  • Prev by Date: Re: Calling delegates explicitly
  • Next by Date: Is there only one CFRunLoopRun which can implement in one process
  • Previous by thread: Re: Calling delegates explicitly
  • Next by thread: Re: Calling delegates explicitly
  • Index(es):
    • Date
    • Thread