Re: Button on a button

2008-03-11 Thread Erik Buck
There is this example of buttons on a button: http://www.stepwise.com/Articles/Technical/NSCell.html But from your description, I suspect you want Core Animation Layers: http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html __

Re: Button on a button

2008-03-10 Thread Mike R. Manzano
The iPhone does this with its menus (the little blue arrow that shows up to the right of a menu). If you click on the menu item, it selects it, if you click on the blue arrow, it allows you to configure it. I would subclass NSButton. On Mar 10, 2008, at 4:28 PM, John Stiles wrote: There isn

Re: Button on a button

2008-03-10 Thread Jean-Daniel Dupas
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

Re: Button on a button

2008-03-10 Thread John Stiles
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

Button on a button

2008-03-10 Thread Niklas Saers
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 butto