Re: Replacing a method via categorys
Re: Replacing a method via categorys
- Subject: Re: Replacing a method via categorys
- From: Pandaa <email@hidden>
- Date: Tue, 28 Jun 2005 13:49:13 +0200
27 jun 2005 kl. 23.48 skrev Theodore H. Smith:
I'm trying to replace a method in NSCell, via categories.
Instead of swizzling, I suspect that in your case it will be much
easier to use a custom sub-class and tell your table view to use that
class.
Here I get a compile time error that [super highlight:flag
withFrame:cellFrame inView:controlView]; is bad. I'm not sure if it
is possible even to call the original method.
There is no highlight:withFrame:inView: method in NSObject, so that
is expected.
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . .
. email@hidden . . www.synapticpulse.net .
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden