Re: Disabled button looks like enabled
Re: Disabled button looks like enabled
- Subject: Re: Disabled button looks like enabled
- From: Dave DeLong <email@hidden>
- Date: Mon, 12 Jan 2009 15:59:53 -0700
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@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