Re: "Pressed" toolbar Items
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.