• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabled button looks like enabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabled button looks like enabled


  • Subject: Re: Disabled button looks like enabled
  • From: Andy Lee <email@hidden>
  • Date: Mon, 12 Jan 2009 17:13:26 -0500

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


It would make sense to uncheck the button's "Enabled" box in IB, but with this solution you don't even have to do that.


Granted, I haven't tried all permutations, but this is what I would have started with.

--Andy

On Jan 12, 2009, at 4:27 PM, Dave DeLong wrote:

While my answer may be "best", now that I know what you're planning to do with it, I would still suggest that you use something like Brandon's BWToolkit. Your phobia of third-party controls will just make life difficult for you. For example: you just spent 10 hours trying to replicate a gradient bar, when you could've spent 20 minutes downloading Brandon's toolkit, installing it, restarting IB, then dragging and dropping in a gradient toolbar yourself, and it would've behaved in exactly the same way with no measurable difference in performance.

Dave

On Jan 12, 2009, at 2:06 PM, Donnie Lee wrote:

No, Michael, that was a simple technical question. Dave's answer was
the best. He even helped me with focus workarounds. Some people told
me something like "Don't do it because I don't like that you do it.
Your app will always suck...etc.etc." -- that absolutely don't disturb
me, that are their personal problems.
_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: Disabled button looks like enabled
      • From: Dave DeLong <email@hidden>
References: 
 >Disabled button looks like enabled (From: "Donnie Lee" <email@hidden>)
 >Re: Disabled button looks like enabled (From: "I. Savant" <email@hidden>)
 >Re: Disabled button looks like enabled (From: "Donnie Lee" <email@hidden>)
 >Re: Disabled button looks like enabled (From: Andy Lee <email@hidden>)
 >Re: Disabled button looks like enabled (From: "Donnie Lee" <email@hidden>)
 >Re: Disabled button looks like enabled (From: Dave DeLong <email@hidden>)
 >Re: Disabled button looks like enabled (From: "Donnie Lee" <email@hidden>)
 >Re: Disabled button looks like enabled (From: Dave DeLong <email@hidden>)
 >Re: Disabled button looks like enabled (From: "Donnie Lee" <email@hidden>)
 >Re: Disabled button looks like enabled (From: "Michael Ash" <email@hidden>)
 >Re: Disabled button looks like enabled (From: "Donnie Lee" <email@hidden>)
 >Re: Disabled button looks like enabled (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Disabled button looks like enabled
  • Next by Date: Re: Xcode-like "Groups & Files" view: NSTreeController and/or core data?
  • Previous by thread: Re: Disabled button looks like enabled
  • Next by thread: Re: Disabled button looks like enabled
  • Index(es):
    • Date
    • Thread