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:39:41 +1000
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 this function with my outlets ?
[myButtonOutlet1 setCanMove:YES];
BOOL moveable = [myButtonOutlet1 canMove];
???
--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