Re: How to get a Category method?
Re: How to get a Category method?
- Subject: Re: How to get a Category method?
- From: Public Look <email@hidden>
- Date: Sun, 14 Mar 2004 21:19:26 -0500
I wanted to chime in and give special thanks and appreciation to both
Andreas Mayer and Ondra Cada for going above and beyond the call by
answering the question in this thread with aplomb and examples. It is
very nice and considerate when people donate their time to answer a
question the way they did with the thoroughness they did. :)
I read the initial question and didn't even consider attempting to
answer it because I assumed the questioner has just done something
silly like mistyping the selector name. We all _know_ that methods
added by categories are exactly the same as methods added any other
way, and a trivial example program will prove it ;) It seems that what
I thought I "knew" was in error if in fact the
class_getInstanceMethod() function does not handle instance methods
added by a category. This could cause a serious problem in one of my
applications! I will have to test this ASAP unless of course someone
else has already done that and will post the results.
Rosyna, You are the one who discovered this problem. Do you have any
example of the problem that you can add to this thread to augment the
excellent examples donated by Andreas Mayer and Ondra Cada ?
_______________________________________________
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.