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 function with my outlets ?

Perhaps the missing information here is that you need to set the buttons in question to be of your custom class? You can do this in Interface Builder by selecting them, then using the Inspector to change their class to MoveButton. You might also want to change the type of your outlets to MoveButton *, otherwise you'll need to cast a lot to avoid warnings.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to