Re: advice for creating these controls

2012-03-23 Thread Rick C.
Thanks again to everyone much appreciated! On Mar 24, 2012, at 2:44 AM, Lee Ann Rucker wrote: > > On Mar 23, 2012, at 3:24 AM, Rick C. wrote: > >> This is what I would expect too. But drawSegment:inFrame:withView: doesn't >> override the cell drawing from what I know am I missing something?

Re: advice for creating these controls

2012-03-23 Thread Lee Ann Rucker
On Mar 23, 2012, at 3:24 AM, Rick C. wrote: > This is what I would expect too. But drawSegment:inFrame:withView: doesn't > override the cell drawing from what I know am I missing something? That draws the cell content, not the border or separator. To change that, subclass drawWithFrame:inView

Re: advice for creating these controls

2012-03-23 Thread Seth Willits
On Mar 23, 2012, at 3:24 AM, Rick C. wrote: > This is what I would expect too. But drawSegment:inFrame:withView: doesn't > override the cell drawing from what I know am I missing something? That'll draw the interior of the segment. The background is drawn by drawWithFrame:inView:, which then

Re: advice for creating these controls

2012-03-23 Thread Rick C.
This is what I would expect too. But drawSegment:inFrame:withView: doesn't override the cell drawing from what I know am I missing something? On Mar 23, 2012, at 2:19 PM, Seth Willits wrote: > On Mar 22, 2012, at 9:49 PM, Lee Ann Rucker wrote: > >> The button/popup combo could still be an NS

Re: advice for creating these controls

2012-03-22 Thread Seth Willits
On Mar 22, 2012, at 9:49 PM, Lee Ann Rucker wrote: > The button/popup combo could still be an NSSegmentedControl. Getting a menu > on a segment is just a matter of setMenu:forSegment: - the triangle would > have to be part of the icon, because it doesn't do it for you. You're totally right. I h

Re: advice for creating these controls

2012-03-22 Thread Lee Ann Rucker
> [UIImage imageNamed:@"segment_tools.png"], You'll save yourself headaches in the future if you don't use extensions in the image name, especially if you someday turn it into a combined 1x & 2x tiff. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: advice for creating these controls

2012-03-22 Thread Rick C.
Thanks everyone for the replies. Yes I guess I just need to get a bit better at subclassing to get the right look. :-) To be sure I would subclass NSSegmentedControl not NSSegmentedCell right? And for the UIControls I guess for the examples right? Yes I'll look into this. And yes the textur

Re: advice for creating these controls

2012-03-22 Thread Lee Ann Rucker
ocoa-Dev List" Sent: Thursday, March 22, 2012 1:32:11 PM Subject: Re: advice for creating these controls On Mar 22, 2012, at 7:14 AM, Rick C. wrote: > Just looking for an opinion what's the best way to create controls like this: > > http://cl.ly/191V3Z1C0m2k2U0V44

Re: advice for creating these controls

2012-03-22 Thread Seth Willits
On Mar 22, 2012, at 7:14 AM, Rick C. wrote: > Just looking for an opinion what's the best way to create controls like this: > > http://cl.ly/191V3Z1C0m2k2U0V443x > > I initially assumed subclassing NSSegmentedControl, but then I was thinking > maybe I can just subclass NSButton and put them tog

Re: advice for creating these controls

2012-03-22 Thread Andreas Mayer
Am 22.03.2012 um 16:22 schrieb Alex Zavatone: > UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] > initWithItems: > > [NSArray arrayWithObjects: >

Re: advice for creating these controls

2012-03-22 Thread Alex Zavatone
On Mar 22, 2012, at 11:08 AM, Andreas Mayer wrote: > > Am 22.03.2012 um 15:14 schrieb Rick C.: > >> Just looking for an opinion what's the best way to create controls like this: >> >> http://cl.ly/191V3Z1C0m2k2U0V443x >> >> I initially assumed subclassing NSSegmentedControl, but then I was th

Re: advice for creating these controls

2012-03-22 Thread Andreas Mayer
Am 22.03.2012 um 15:14 schrieb Rick C.: > Just looking for an opinion what's the best way to create controls like this: > > http://cl.ly/191V3Z1C0m2k2U0V443x > > I initially assumed subclassing NSSegmentedControl, but then I was thinking > maybe I can just subclass NSButton and put them togeth

Re: advice for creating these controls

2012-03-22 Thread Alex Zavatone
Download the UIControls project from the source code section on Apple's dev site. On Mar 22, 2012, at 10:14 AM, Rick C. wrote: > Hi, > > Just looking for an opinion what's the best way to create controls like this: > > http://cl.ly/191V3Z1C0m2k2U0V443x > > I initially assumed subclassing NSSe

advice for creating these controls

2012-03-22 Thread Rick C.
Hi, Just looking for an opinion what's the best way to create controls like this: http://cl.ly/191V3Z1C0m2k2U0V443x I initially assumed subclassing NSSegmentedControl, but then I was thinking maybe I can just subclass NSButton and put them together. Or maybe even make this out of a custom vie