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 textured control gives a similar look depending on the 
background.  But not quite as nice like for example the divider lines in my 
pics go all the way from top to bottom where the stock Lion control does not go 
all the way leaving an empty space at the top/bottom.  It doesn't look bad, but 
just not quite as nice as my examples...

rc



On Mar 23, 2012, at 4:32 AM, Seth Willits wrote:

> 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 together.  Or maybe even 
>> make this out of a custom view?  Any help would be appreciated thanks,
> 
> 
> Well it depends on what exactly you mean. Do you want the exact look, or just 
> the functionality and behavior? The bottom two are just plain 
> NSSegmentedControls with a custom appearance. If you want the same 
> appearance, you'll have to subclass it and draw the segments yourself.
> 
> The button/popup combo is a custom control. You coooould make it out of two 
> customized controls, a button and a popup and smoosh them together (the 
> button would draw no right edge, and the popup would draw the vertical 
> separator as its left edge), or you could make it a single custom control. 
> Either approach would work, but I always do the latter. 
> 
> --
> Seth Willits
> 
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/rickcorteza%40gmail.com
> 
> This email sent to rickcort...@gmail.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to