None taken. I really "got" Cocoa while working on iPhone, so understanding what ButtonCells actually do and how they work are still things I haven't gotten to yet. That's why my first idea (after understanding the question) was to go look at firstResponder stuff.

Plus, this thread has been more entertaining than paying diligent attention in my Principles of Statistics class... ;)

Dave

On Jan 12, 2009, at 3:13 PM, Andy Lee wrote:

No offense, Dave -- you've been very generous with your time and advice (while also, of course, satisfying your own curiosity :)) -- but I personally would use I. Savant's original "too dirty" suggestion, which can be implemented in three lines:

@implementation MyButton

- (void)drawRect:(NSRect)rect
{
    [[self cell] setEnabled:YES];
    [super drawRect:rect];
    [[self cell] setEnabled:NO];
}

@end
_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to