Re: NSSegmentedControl select multiple cells
Florian Soenens wrote: > how to select multiple. In IB there is an 'selection' option in the attributes inspector for the behaviour. Set it from momentary to multiple. Afterwards you have to handle that in your code like: if ( [control isSelectedForSegment:3] ) and the like. -- Hado Hein (KSK, DTHG), master craftsman of stagecrafts, Berlin sip +49.30.91688488 www.beleuchtungsbildner.de - Stage Lighting Directing www.batchmaker.de - Stage Lighting Design, Control and Routing ___ 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
Re: NSSegmentedControl select multiple cells
On 4 Mar 2010, at 10:50, Florian Soenens wrote: > Hi Jonathan, > > i just discovered the same thing, my control is Textured Rounded and doesn't > work, Regular Rounded seems to work fine. > Should i file a bug? > Hard to know if this is a bug or just a variant behaviour by design. Have you checked the HIG guide? Other controls, especially NSButtons, display this sort of subtle, or not so subtle in this case, variation between styles. Regards Jonathan Mitchell Developer 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
Re: NSSegmentedControl select multiple cells
Hi Jonathan, i just discovered the same thing, my control is Textured Rounded and doesn't work, Regular Rounded seems to work fine. Should i file a bug? On 04 Mar 2010, at 11:47, jonat...@mugginsoft.com wrote: > A 10 sec 10.6 demo project - 1 window + 1 NSSegmentedControl - shows this is > possible. > However, behaviour seems to vary depending on the style of the control. > > The textured rounded style seems to like to do its own thing. > Other styles are more well behaved. > > Regards > > Jonathan Mitchell > > Developer > http://www.mugginsoft.com > > > > > > > On 4 Mar 2010, at 10:31, Florian Soenens wrote: > >> No bindings, not even the enabled binding. >> I was even wondering if it is uberhaupt possible to select multiple cells in >> a NSSegmentedControl? >> >> On 04 Mar 2010, at 10:43, jonat...@mugginsoft.com wrote: >> >>> >>> On 4 Mar 2010, at 09:28, Florian Soenens wrote: >>> Hi List, i googled this but found nothing relevant. I want a segmented control with 6 cells that instead of acting like radio buttons, they should act as checkboxes, that is, multiple cells should be selected. I tried to set the mode to "select any" in IB but no no avail. Also tried setting the mode programmatically, but that doesn't work either. Every time i click a cell, the others get deselected. I've seen examples of how to deselect all cells but not how to select multiple. Anyone has any ideas? >>> Are you using bindings? >>> Whenever a control seems to be acting counter intuitively I always check my >>> bindings' options. >>> >>> Regards >>> >>> Jonathan Mitchell >>> >>> Developer >>> http://www.mugginsoft.com >>> >> >> >> >> Looking for Web-to-Print Solutions? >> Visit our website : http://www.vit2print.com >> >> >> This e-mail, and any attachments thereto, is intended only for use by the >> addressee(s) named herein and may contain legally privileged and/or >> confidential information and/or information protected by intellectual >> property rights. >> If you are not the intended recipient, please note that any review, >> dissemination, disclosure, alteration, printing, copying or transmission of >> this e-mail and/or any file transmitted with it, is strictly prohibited and >> may be unlawful. >> If you have received this e-mail by mistake, please immediately notify the >> sender and permanently delete the original as well as any copy of any e-mail >> and any printout thereof. >> We may monitor e-mail to and from our network. >> >> NSS nv Tieltstraat 167 8740 Pittem Belgium > > ___ > > 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/florian.soenens%40nss.be > > This email sent to florian.soen...@nss.be Looking for Web-to-Print Solutions? Visit our website : http://www.vit2print.com This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. We may monitor e-mail to and from our network. NSS nv Tieltstraat 167 8740 Pittem Belgium ___ 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
Re: NSSegmentedControl select multiple cells
A 10 sec 10.6 demo project - 1 window + 1 NSSegmentedControl - shows this is possible. However, behaviour seems to vary depending on the style of the control. The textured rounded style seems to like to do its own thing. Other styles are more well behaved. Regards Jonathan Mitchell Developer http://www.mugginsoft.com On 4 Mar 2010, at 10:31, Florian Soenens wrote: > No bindings, not even the enabled binding. > I was even wondering if it is uberhaupt possible to select multiple cells in > a NSSegmentedControl? > > On 04 Mar 2010, at 10:43, jonat...@mugginsoft.com wrote: > >> >> On 4 Mar 2010, at 09:28, Florian Soenens wrote: >> >>> Hi List, >>> >>> i googled this but found nothing relevant. >>> I want a segmented control with 6 cells that instead of acting like radio >>> buttons, they should act as checkboxes, that is, multiple cells should be >>> selected. >>> I tried to set the mode to "select any" in IB but no no avail. >>> Also tried setting the mode programmatically, but that doesn't work either. >>> Every time i click a cell, the others get deselected. >>> >>> I've seen examples of how to deselect all cells but not how to select >>> multiple. >>> >>> Anyone has any ideas? >>> >> Are you using bindings? >> Whenever a control seems to be acting counter intuitively I always check my >> bindings' options. >> >> Regards >> >> Jonathan Mitchell >> >> Developer >> http://www.mugginsoft.com >> > > > > Looking for Web-to-Print Solutions? > Visit our website : http://www.vit2print.com > > > This e-mail, and any attachments thereto, is intended only for use by the > addressee(s) named herein and may contain legally privileged and/or > confidential information and/or information protected by intellectual > property rights. > If you are not the intended recipient, please note that any review, > dissemination, disclosure, alteration, printing, copying or transmission of > this e-mail and/or any file transmitted with it, is strictly prohibited and > may be unlawful. > If you have received this e-mail by mistake, please immediately notify the > sender and permanently delete the original as well as any copy of any e-mail > and any printout thereof. > We may monitor e-mail to and from our network. > > NSS nv Tieltstraat 167 8740 Pittem Belgium ___ 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
Re: NSSegmentedControl select multiple cells
No bindings, not even the enabled binding. I was even wondering if it is uberhaupt possible to select multiple cells in a NSSegmentedControl? On 04 Mar 2010, at 10:43, jonat...@mugginsoft.com wrote: > > On 4 Mar 2010, at 09:28, Florian Soenens wrote: > >> Hi List, >> >> i googled this but found nothing relevant. >> I want a segmented control with 6 cells that instead of acting like radio >> buttons, they should act as checkboxes, that is, multiple cells should be >> selected. >> I tried to set the mode to "select any" in IB but no no avail. >> Also tried setting the mode programmatically, but that doesn't work either. >> Every time i click a cell, the others get deselected. >> >> I've seen examples of how to deselect all cells but not how to select >> multiple. >> >> Anyone has any ideas? >> > Are you using bindings? > Whenever a control seems to be acting counter intuitively I always check my > bindings' options. > > Regards > > Jonathan Mitchell > > Developer > http://www.mugginsoft.com > Looking for Web-to-Print Solutions? Visit our website : http://www.vit2print.com This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. We may monitor e-mail to and from our network. NSS nv Tieltstraat 167 8740 Pittem Belgium ___ 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
Re: NSSegmentedControl select multiple cells
On 4 Mar 2010, at 09:28, Florian Soenens wrote: > Hi List, > > i googled this but found nothing relevant. > I want a segmented control with 6 cells that instead of acting like radio > buttons, they should act as checkboxes, that is, multiple cells should be > selected. > I tried to set the mode to "select any" in IB but no no avail. > Also tried setting the mode programmatically, but that doesn't work either. > Every time i click a cell, the others get deselected. > > I've seen examples of how to deselect all cells but not how to select > multiple. > > Anyone has any ideas? > Are you using bindings? Whenever a control seems to be acting counter intuitively I always check my bindings' options. Regards Jonathan Mitchell Developer 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