Re: Accessor methods in Category
Re: Accessor methods in Category
- Subject: Re: Accessor methods in Category
- From: Graham Cox <email@hidden>
- Date: Thu, 6 Aug 2009 22:19:17 +1000
On 06/08/2009, at 10:11 PM, Mahaboob wrote:
Is it possible to use accessor methods in category?
I need to add one for UIButton class.
How can I do it?
You can add any methods in a category. What you can't add are
additional ivars, so if the base class doesn't have the ivar you need,
you're out of luck. You need to subclass to add ivars.
--Graham
_______________________________________________
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