Re: Button on a button
Re: Button on a button
- Subject: Re: Button on a button
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 11 Mar 2008 00:29:57 +0100
NSButton is a view. Every view accept subviews. So you can probably
adding an other button in an existing button. I don't know if
Interface Builder support it, but if it does not, you can do it
programmaticaly.
Le 11 mars 08 à 00:23, Niklas Saers a écrit :
Hi,
I'm fairly new to Cocoa so I'm sorry if this is a trivial question.
I would like to create a little button in a button: like in
Dashboard where you get a little "i" icon in a circle that can flip
the widget, I would like to put a little "i" in a circle on the
right-hand side of my button and flip the button to change its
settings when "i" is pressed. But when the button is clicked other
places than the "i", I would like the button action to happen. For
example, the settings backside of the button could set what webpage
to load and pressing the button would load the webpage.
Can I do this with NSButton? Is there a nice and simple way to do
this, or do I need to subclass NSButton or implement my own control
that looks like NSButton?
Cheers
Nik
_______________________________________________
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
_______________________________________________
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