Re: Pull Down Toolbar Item

2009-01-06 Thread Peter Ammon
Try changing the image position via setImagePosition: or in IB. On Dec 29, 2008, at 1:26 PM, Carmen Cerino Jr. wrote: I am now 99% sure that its drawing method is doing something awkward. Here are the results of what happened when I implemented my own draw method: http://screencast.com/t/F

Re: Pull Down Toolbar Item

2008-12-31 Thread Sean McBride
Carmen Cerino Jr. (ccerin...@gmail.com) on 2008-12-29 10:00 AM said: >I would like to create a pull down toolbar item similar to what Xcode >has for a few of its toolbar items. BTW, the HIG talks about these a little: <http://developer.apple.com/documentation/userexperience/c

Re: Pull Down Toolbar Item

2008-12-29 Thread Carmen Cerino Jr.
I am now 99% sure that its drawing method is doing something awkward. Here are the results of what happened when I implemented my own draw method: http://screencast.com/t/FbOLyvgDS On Mon, Dec 29, 2008 at 3:41 PM, Carmen Cerino Jr. wrote: > For the clipping issue, I am 95% sure it has to do with

Re: Pull Down Toolbar Item

2008-12-29 Thread Carmen Cerino Jr.
For the clipping issue, I am 95% sure it has to do with how NSPopUpButton draws the image. If you look at the following screen capture, you will notice the NSButton and NSPopUpButton differ greatly on how they draw their images. http://screencast.com/t/zXY5sLZP On Mon, Dec 29, 2008 at 3:18 PM, Car

Re: Pull Down Toolbar Item

2008-12-29 Thread Andy Lee
On Dec 29, 2008, at 10:00 AM, Carmen Cerino Jr. wrote: [...] However, I am NOT refering to the delayed menu. [...] 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

Re: Pull Down Toolbar Item

2008-12-29 Thread j o a r
On Dec 29, 2008, at 10:04 AM, Carmen Cerino Jr. wrote: You need to subclass in order to get validation working. That is the only reason I can think of why it needs to be a subclass Can you describe the type of validation that you're interested in performing? Simple validation should work

Re: Pull Down Toolbar Item

2008-12-29 Thread j o a r
On Dec 29, 2008, at 10:59 AM, Carmen Cerino Jr. wrote: The setArrowPosition and preferedEdge methods do not work for me. I followed the documentation to get the arrow to appear in the lower right corner pointing down and nothing happens. Please file a bug report. At the very least, the doc

Re: Pull Down Toolbar Item

2008-12-29 Thread Carmen Cerino Jr.
The setArrowPosition and preferedEdge methods do not work for me. I followed the documentation to get the arrow to appear in the lower right corner pointing down and nothing happens. On Mon, Dec 29, 2008 at 1:04 PM, Carmen Cerino Jr. wrote: > Any particular reason to use a subclass? You should be

Re: Pull Down Toolbar Item

2008-12-29 Thread Carmen Cerino Jr.
> > Any particular reason to use a subclass? You should be able to use a plain > NSTollbarItem, and set the pop-up button using "-setView:" You need to subclass in order to get validation working. That is the only reason I can think of why it needs to be a subclass As you have noted, you need to

Re: Pull Down Toolbar Item

2008-12-29 Thread j o a r
On Dec 29, 2008, at 7:00 AM, Carmen Cerino Jr. wrote: In order to create the item, I started with a subclass of NSToolbarItem that has a NSPopupButton for its view. Any particular reason to use a subclass? You should be able to use a plain NSTollbarItem, and set the pop-up button using "-

Pull Down Toolbar Item

2008-12-29 Thread Carmen Cerino Jr.
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