• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Button on a button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Button on a button


  • Subject: Re: Button on a button
  • From: John Stiles <email@hidden>
  • Date: Mon, 10 Mar 2008 16:28:14 -0700

There isn't a built-in way to do this, and unless this is a very large button I am having a hard time visualizing how this could work at all. What kind of button are you dealing with here?

Technically any view can have subviews so it might be possible to programatically add a small "i" button as a subview of your NSButton, but I have no idea if it would actually work, and I'm a little concerned that it will seem very odd.


Niklas Saers wrote:
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


  • Follow-Ups:
    • Re: Button on a button
      • From: "Mike R. Manzano" <email@hidden>
References: 
 >Button on a button (From: Niklas Saers <email@hidden>)

  • Prev by Date: Service without calling app to front?
  • Next by Date: Re: Button on a button
  • Previous by thread: Button on a button
  • Next by thread: Re: Button on a button
  • Index(es):
    • Date
    • Thread