Re: List of delegates
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.