• 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: Gideon King <email@hidden>
  • Date: Tue, 28 May 2002 22:17:05 +0800

...or just use the standard NSToolbarItem with a button, and use the setView method
i.e. in - toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:

do something like:
[toolbarItem setView:aButton];
[toolbarItem setMinSize:NSMakeSize(NSWidth([aButton frame]), NSHeight([aButton frame]))];
[toolbarItem setMaxSize:NSMakeSize(NSWidth([aButton frame]), NSHeight([aButton frame]))];


On Tuesday, May 28, 2002, at 10:00 PM, j o a r wrote:

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.
_______________________________________________
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.

References: 
 >Re: "Pressed" toolbar Items (From: j o a r <email@hidden>)

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