• 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: "Pressed" toolbar Items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Pressed" toolbar Items


  • Subject: Re: "Pressed" toolbar Items
  • From: j o a r <email@hidden>
  • Date: Tue, 28 May 2002 16:00:35 +0200

You need to create your own NSToolbarItem subclass in which you provide your own view / button that understands, remembers, and knows how to draw "pushed" states.
You will have to think about how to implement a corresponding state for the "text only" toolbar display mode. Perhaps you could applend the string "active" / "inactive" to the menuFormRepresentation title depending on the pushed state of the item.

j o a r

On Tuesday, May 28, 2002, at 03:26 PM, Cristian Savu wrote:

In the "old style" interfaces, a toolbar item can be pressed and he keeps
the "pressed state" look.
How can I do the same thing using COCOA (and complying with Aqua
guidelines, of couse)? I've checked NSToolbarItem and
NSToolbar but I didn't find any "Is pressed" or "Is checked" methods.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: "Pressed" toolbar Items
      • From: Gideon King <email@hidden>
References: 
 >"Pressed" toolbar Items (From: "Cristian Savu" <email@hidden>)

  • Prev by Date: "Pressed" toolbar Items
  • Next by Date: Re: TIFF from PDF
  • Previous by thread: "Pressed" toolbar Items
  • Next by thread: Re: "Pressed" toolbar Items
  • Index(es):
    • Date
    • Thread