Re: Re: NSPopupButton
Re: Re: NSPopupButton
- Subject: Re: Re: NSPopupButton
- From: "Doug Penny" <email@hidden>
- Date: Fri, 8 Sep 2006 14:26:11 -0400
What method do I use to change the image though, setImage?
Thanks,
Doug
On 9/8/06, PGM <email@hidden> wrote:
You register for NSPopUpButtonWillPopUpNotification, and change the
image when that notification is called. You can restore the image
again using NSMenuDidEndTrackingNotification.
Patrick
On 8-Sep-06, at 10:02 AM, Doug Penny wrote:
> Along with this question... does can someone share how to change the
> icon for a NSPopUpButton when clicked. I am trying to create an
> action button similar to the one found in Mail.app for adding smart
> mailboxes. Everything works great using a NSPopUpButton, but I would
> like for the icon to change when click so it looks like the button is
> depressed. I already have the image file, I just need to figure out
> how to trigger the action. Thanks.
>
> Doug
>
>
> On 9/7/06, Wagner Truppel <email@hidden> wrote:
>> What you're describing annoyed me to no end until I found a simple
>> solution: select any one of the NSPopUpButton menu items, then hit
>> command-C (copy) followed by command-V (paste). As you paste the
>> copied item, it gets added as a new item. Repeat the paste operation
>> as many times as you need, then edit them as desired.
>>
>> Wagner
>>
>> ============
>>
>> The difference between an auto mechanic and a quantum mechanic is
>> that the quantum mechanic can get the car inside the garage without
>> opening the door.
>>
>> On 6-Sep-06, at 20:52 PM, Dave Budde wrote:
>>
>> > Is there a way in Interface Builder to make the number of entries
>> > in an NSPopUpButton larger than the default 3? Everything else
>> > seems to be configurable in this regard except this one control.
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Cocoa-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> 40gmail.com
>>
>> This email sent to email@hidden
>>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40sympatico.ca
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden