Pull Down Toolbar Item
Pull Down Toolbar Item
- Subject: Pull Down Toolbar Item
- From: "Carmen Cerino Jr." <email@hidden>
- Date: Mon, 29 Dec 2008 10:00:49 -0500
Howdy,
I would like to create a pull down toolbar item similar to what Xcode
has for a few of its toolbar items. However, I am NOT refering to the
delayed menu. In order to create the item, I started with a subclass
of NSToolbarItem that has a NSPopupButton for its view. The image for
the toolbar item or rather the popup button comes from the first item
since I have the popup button set to pull down mode (as per what the
NSPopupButton documentation states).
The issue I am running into is that the image is not being fully
displayed (see screen capture below). Increasing the size of the
toolbar item solves the issue, but causes the item to be out of
alignment with the rest of the items. The other issue I am running
into is more of a matter of curiosity. If you look at the screen
capture of my custom toolbar item and then look at XCode's toolbar
item, you will notice the location of the pulldown triangle is
different. I am just curious as to how they got it positioned more to
the bottom right of the image vs. the center. My guess is that they
possibly drew the triangle themselves.
My Toolbar Item: http://screencast.com/t/4MKExdXxsO
XCode's Toolbar Item: http://screencast.com/t/TJljMYvfaB
Thanks,
Carmen
_______________________________________________
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