Re: Accessor methods in Category

2009-08-06 Thread Alastair Houghton
On 6 Aug 2009, at 13:32, Mahaboob wrote: I subclassed the UIButton class like: @interface MoveButton : UIButton { BOOL canMove; } @property(readwrite) BOOL canMove; @end @implementation MoveButton @synthesize canMove; My main class contains a number of UIButton outlets. How can I use this

Re: Accessor methods in Category

2009-08-06 Thread Graham Cox
On 06/08/2009, at 10:32 PM, Mahaboob wrote: I subclassed the UIButton class like: @interface MoveButton : UIButton { BOOL canMove; } @property(readwrite) BOOL canMove; @end @implementation MoveButton @synthesize canMove; My main class contains a number of UIButton outlets. How can I use

Re: Accessor methods in Category

2009-08-06 Thread Mahaboob
:49 PM, "Graham Cox" wrote: > > 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 y

Re: Accessor methods in Category

2009-08-06 Thread Graham Cox
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 iva

Accessor methods in Category

2009-08-06 Thread Mahaboob
Is it possible to use accessor methods in category? I need to add one for UIButton class. How can I do it? Thanks in advance Mahaboob. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to