• 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
[REPOSTED] toggle button dim when pushed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[REPOSTED] toggle button dim when pushed


  • Subject: [REPOSTED] toggle button dim when pushed
  • From: Chase <email@hidden>
  • Date: Thu, 14 Jul 2005 15:32:39 -0500

[this was posted really early this morning and i think it got lost in the shuffle somehow, so i'm posting again]

i've got a button that's set up like so:

    [button setBezelStyle:NSShadowlessSquareBezelStyle];
    [button setButtonType:NSToggleButton];
    [button setBordered:NO];
    [button setTitle:@""];
    [button setImagePosition:NSImageOnly];
    [button setImage:image];



it works perfectly except that when i push it in and hold it, it dims until i let go. (normal/default behavior)

but for this particular button, i don't want the image to dim at all.

i tried:

    [[button cell] setHighlightsBy:NSNoCellMask];
    [[button cell] setShowsStateBy:NSNoCellMask];


... but the behavior is the same.



how can i set it so that it never dims?

- chase




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Displaying multiple NSView subclasses
  • Next by Date: Unique Values for Entity Attributes
  • Previous by thread: Re: Displaying multiple NSView subclasses
  • Next by thread: Unique Values for Entity Attributes
  • Index(es):
    • Date
    • Thread