On 14 Jan 2011, at 23:35, Kyle Sluder wrote:

> On Fri, Jan 14, 2011 at 1:17 PM, Shawn Bakhtiar <shashan...@hotmail.com> 
> wrote:
>> Don't listen to the naysayers... You can do whatever you want.
> 
> Sure, but koko asked how he could tell an NSSegmentedCell to draw its
> image and its text. It's apparent that the authors of NSSegmentedCell
> did not implement this, because why implement something that the HIG
> authors are going to discourage people from using anyway?


The HIG says - a segmented control can contain either icons or text, but not a 
mixture of both.
The Segmented control programmin guide says - Although it is possible to set 
both a label and an image for a segment, a segment should have one or the other.

It is supported in IB and NSSegmentedCell advertises the appropriate methods.

Segmented controls often mix text and image based segments (the iCal day, week, 
month navigator).
If you want to bend the HIG a bit you certainly can.

Regards

Jonathan Mitchell

Developer
Mugginsoft LLP
http://www.mugginsoft.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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to