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

Re: List of delegates


  • Subject: Re: List of delegates
  • From: email@hidden
  • Date: Tue, 07 May 2002 12:08:49 -0700

Charles Srstka wrote:
|Unfortunately, the "Methods Implemented by the Delegate" section is not
|listed in the PDF file's table of contents, so it is in no way obvious
|that it exists.

If you're using the Acrobat reader, you can search for "delegate" to find the stuff on delegates. (If you're using Preview, you're out of luck, since it has no search function. [This is one reason I use Acrobat for all my PDF reading.])

I'm guessing you're using Project Builder; I usually open the HTML documentation directly from PB using the Help menu. It's searchable using the normal PB search facilities.

Another hint: add to your delegate class this method:

- (BOOL) respondsToSelector: (SEL) selector
{
NSLog(@"MyDelegate: respondsToSelector: %@ ?", NSStringFromSelector(selector));
return [super respondsToSelector: selector];
}

This will log any inquires about what methods your delegate implements. Since most delegate methods are optional, the owner of the delegate has to check whether the various methods are implemented before calling them. By seeing what the owner is asking about, you can see what methods your delegate may want to implement.

Glen Fisher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: List of delegates (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Where to put "Check for Updates" menu item
  • Next by Date: Re: A Matrix collection class
  • Previous by thread: Re: List of delegates
  • Next by thread: Re: List of delegates
  • Index(es):
    • Date
    • Thread