• 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: disabling NSButton?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disabling NSButton?


  • Subject: Re: disabling NSButton?
  • From: "Rob Napier" <email@hidden>
  • Date: Fri, 21 Mar 2008 11:50:29 -0400

Are you certain this code is actually running and that uiButton is bound to
the button you think it's bound to? This looks correct (though you often
don't require the setNeedsDisplay:). I would add:

   NSLog(@"DEBUG:disable uiButton:%@:%d", uiButton, [uiButton isEnabled]);

And make sure what you think is happening is actually happening.

-Rob

On Wed, Mar 19, 2008 at 3:32 PM, Kevin Dixon <email@hidden> wrote:

> Hi,
>
> I have two buttons, of the Round Textured Button variety. When I try to
> disable them, I do
>
> [uiButton setEnabled:NO];
> [uiButton setNeedsDisplay:YES];
>
> However, the button appears normal (eg enabled) but doesn't click. What am
> I doing wrong here?
>
> -Kevin
>


--
Rob Napier -- Software and Security Consulting -- http://robnapier.net
"Those who would give up essential liberty to purchase a little temporary
safety, deserve neither liberty nor safety." -- B. Franklin, Printer
_______________________________________________

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: disabling NSButton?
      • From: "Kevin Dixon" <email@hidden>
References: 
 >disabling NSButton? (From: "Kevin Dixon" <email@hidden>)

  • Prev by Date: Re: iPhone/iPod Touch
  • Next by Date: Re: Determining Class from Instance address
  • Previous by thread: Re: disabling NSButton?
  • Next by thread: Re: disabling NSButton?
  • Index(es):
    • Date
    • Thread