On Dec 9, 2010, at 8:45 AM, Jesper Papmehl-Dufay wrote:

> Hi!
> 
> I'm having a bit of trouble with the segmented control.
> I'm trying to use it as a group of check buttons (I set the Mode to Select 
> Any in Interface Builder).
> This works fine as long as I don't set the Style to Textured Rounded or 
> Textured Square in IB. If I do, the control stops drawing the buttons in the 
> selected state; it behaves as if the Mode was set to Select None. (The 
> buttons look pressed while the mouse button is down over them, but when the 
> mouse button is released, the button goes back to not looking selected.)
> This is reproducible for me in a newly created nib file using the Simulate 
> Interface command in IB, so I don't think it's anything I'm doing wrong in my 
> code.
> 
> Does anyone know how to get the Select Any mode (tracking mode 
> NSSegmentSwitchTrackingSelectAny) working with the textured appearance 
> (either the NSSegmentStyleTexturedRounded or the NSSegmentStyleTexturedSquare 
> segment style)?
> 
> TIA


Hi Jesper,

This control style does not show its selection in the bezel, but instead 
through the "blue glow" effect applied to template images.  To see the 
selection, you set images that are marked as template through setTemplate:YES.  
They will draw blue when their segment is selected.

Hope this helps,
-Peter_______________________________________________

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