Hi Thaddeus,
On Wed, Aug 26, 2015 at 6:20 PM, Thaddeus Cooper
wrote:
> I just checked the documentation and did not see NSSegmentStyleSeparated
> in the list of NSSegmentStyle enums. Here is the list:
>
> enum {
> NSSegmentStyleAutomatic = 0,
> NSSegmentStyleRounded = 1,
>
It is in the documentation, see
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSegmentedControl_Class/#//apple_ref/c/tdef/NSSegmentStyle
This is the list for 10.10 (copied from NSSegmentedControl.h):
typedef NS_ENUM(NSInteger, NSSegmentStyle) {
I just checked the documentation and did not see NSSegmentStyleSeparated in the
list of NSSegmentStyle enums. Here is the list:
enum {
NSSegmentStyleAutomatic = 0,
NSSegmentStyleRounded = 1,
NSSegmentStyleTexturedRounded = 2,
NSSegmentStyleRoundRect = 3,
NS
Nope, I am still getting the exception.
J.
On Wed, Aug 26, 2015 at 3:31 PM, Ken Thomases wrote:
> On Aug 26, 2015, at 7:04 AM, Jacek Oleksy wrote:
>
>> I want to set NSSegmentStyleSeparated on my NSSegmentedControl
>> (managed by autolayout). However, when I create constraints for the
>> parent
On Aug 26, 2015, at 7:04 AM, Jacek Oleksy wrote:
> I want to set NSSegmentStyleSeparated on my NSSegmentedControl
> (managed by autolayout). However, when I create constraints for the
> parent view, I get an exception:
>
> Assertion failure in -[NSSegmentedControl ns_widgetType],
> /SourceCache/
So it must be that the KVO of a tool bar item to its underlying control is out
of whack.
Select the toolbar item and adjust its width.
-koko
On Aug 13, 2012, at 12:41 PM, koko wrote:
> Add a Toolbar to a window in IB
>
> Add a Segmented Control as a Toolbar Item
>
> The default Lab
On Aug 3, 2011, at 12:30 PM, koko wrote:
> The path type for the images for segments 0 and 3 and segments 1 and 2 is
> "Relative to Enclosing Group".
No, I mean the image names as specified in the control in Interface Builder.
—Jens
smime.p7s
Description: S/MIME cryptographic signature
__
The path type for the images for segments 0 and 3 and segments 1 and 2 is
"Relative to Enclosing Group".
The images names all lower case. The remote systems is running OSXv10.5.8.
Looking at fs_usage now.
On Aug 3, 2011, at 12:59 PM, Jens Alfke wrote:
>
> On Aug 3, 2011, at 11:51 AM, koko wr
On Aug 3, 2011, at 11:51 AM, koko wrote:
> I have a NSSegmentedControl as an item in a toolbar. There are 4 segments
> each with a different image.
> When I build, create an installer package and install on my system the
> control draws as expected.
> Using the same installer package on a remo
On Fri, 14 Jan 2011 18:57:00 -0700, koko said:
>Ouch!
>
>Some of us need to lighten up
Some of us need to ask questions properly. You explicitly said, "Is there a
recommended manner to accomplish this?". I told you where to find the
recommended use of NSSegmentedControl. Then in a later note y
On 14 Jan 2011, at 23:35, Kyle Sluder wrote:
> On Fri, Jan 14, 2011 at 1:17 PM, Shawn Bakhtiar
> 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 autho
Ouch!
Some of us need to lighten up ... it is software engineering not rocket science
... I am not going to make anything ugly ... I want my app to be visually
appealing and "intuitive". The intuitive part is what I am trying to get to;
it is something pointed out by a number of users.
By th
As others (notably Kyle) have pointed out, there is no need to act so
defensively.
You specifically asked what the "recommended" way to do this is, and I simply
pointed out that the approach is NOT recommended.
--
Conrad Shultz
www.sythetiqsolutions.com
On Jan 14, 2011, at 12:38, koko wrote:
On Fri, Jan 14, 2011 at 6:35 PM, Kyle Sluder wrote:
>
> Images-and-text on segmented cells can look atrocious. It can look
> like Windows. It can look like someone feels like disrespecting
> platform conventions. But sometimes violating the HIG is precisely the
> right thing to do. That's why they
On Fri, Jan 14, 2011 at 1:17 PM, Shawn Bakhtiar 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 i
such thing. Nothing could be father from the truth, you can always
>> added any missing functionality, or override any ones you don't like.
>>
>> IMHO
>>
>>
>>
>>> Date: Fri, 14 Jan 2011 12:44:19 -0800
>>> From: kyle.slu...@gmail.com
&
12:44:19 -0800
> > From: kyle.slu...@gmail.com
> > To: k...@highrolls.net
> > CC: cocoa-dev@lists.apple.com
> > Subject: Re: NSSegmentedControl Label
> >
> > On Fri, Jan 14, 2011 at 12:38 PM, koko wrote:
> > > It may not be recommended but I want to do
n't like.
IMHO
> Date: Fri, 14 Jan 2011 12:44:19 -0800
> From: kyle.slu...@gmail.com
> To: k...@highrolls.net
> CC: cocoa-dev@lists.apple.com
> Subject: Re: NSSegmentedControl Label
>
> On Fri, Jan 14, 2011 at 12:38 PM, koko wrote:
> > It may not be recommende
On Fri, Jan 14, 2011 at 12:38 PM, koko wrote:
> It may not be recommended but I want to do it. Should I get permission from
> from steven p jobs first?
>
> Apple HIG is not the be-all, end-all of UI design.
No, but it is the design document by which the AppKit implementors
write their code.
If
It may not be recommended but I want to do it. Should I get permission from
from steven p jobs first?
Apple HIG is not the be-all, end-all of UI design.
-koko
On Jan 14, 2011, at 1:33 PM, Conrad Shultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 1/14/11 12:28 PM, koko wro
On 14 Jan 2011, at 20:28, koko wrote:
> Thanks Matt but the documentation is no help whatsoever. I read it.
>
> The question remains ... What is the recommended manner to put text and
> graphic in one segment of an NSSegmentedControl.
>
>
>
Try the docs for NSSegmentedCell.
Regards
Jonath
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 1/14/11 12:28 PM, koko wrote:
> Thanks Matt but the documentation is no help whatsoever. I read it.
>
> The question remains ... What is the recommended manner to put text
> and graphic in one segment of an NSSegmentedControl.
It's not recommended
Thanks Matt but the documentation is no help whatsoever. I read it.
The question remains ... What is the recommended manner to put text and graphic
in one segment of an NSSegmentedControl.
-koko
On Jan 14, 2011, at 1:09 PM, Matt Neuburg wrote:
> On Fri, 14 Jan 2011 11:01:15 -0700, koko sa
On Fri, 14 Jan 2011 11:01:15 -0700, koko said:
>I would like to programmatically set the label for a section of an
>NSSegmentedControl which would contain text and a graphic. Is there a
>recommended manner to accomplish this?
The usual way to discover the recommended manner is to read the docu
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 Roun
Quincey, Brian and Graham,
I tried one last time, setting my toolbar in pure code. I started from the
SimpleToolbar sample that comes with the XCode tools. And it works! There's a
remaining bug: the label positions are wrong in the toolbar customization
palette.
The code is here: http://www.d
On May 5, 2010, at 2:57 PM, Flavio Donadio wrote:
> Quincey,
>
>
> Now, that's the kind of answer I needed, even if it doesn't really get me
> where I want! At least, it stops me from pursuing something too difficult,
> impossible or undesirable.
>
> On 05/05/2010, at 14:17, Quincey Morris w
Quincey,
Now, that's the kind of answer I needed, even if it doesn't really get me where
I want! At least, it stops me from pursuing something too difficult, impossible
or undesirable.
On 05/05/2010, at 14:17, Quincey Morris wrote:
> And that points to your real problem -- what you want *isn'
I should mention that what I did is that I used a segmented control, and then
used the single under the control label, but used spaces and centering to make
it LOOK like it had two labels, even though it really only has one label... so
instead of having "next" under one arrow and "prev" under t
On May 5, 2010, at 07:00, Flavio Donadio wrote:
> Yes, I could do it in IB, if only I knew how to put the labels below each
> segment, which is my ultimate goal here.
And that points to your real problem -- what you want *isn't* a segmented
control. Segment controls have their segment labels in
I've tried doing this myself. I don't think it can be done. at least not the
way we want to do it.
If you look in the Preview.app package, you can find all of the images that it
uses in the contents/resources folder. Notice that it has buttonLeft.tiff,
ButtonLeftAquar.tif, buttonLeftDark.tif,
Jerry,
I get the idea, but...
On 05/05/2010, at 01:42, Jerry Krinock wrote:
> I have an NSSearchField in a toolbar. It is a subview of an NSToolbarItem,
> not of an NSView.
You're right. I forgot the fact that you can only have NSToolbarItems (or
subclasses of it) in a NSToolbar. I tried an
On 2010 May 04, at 18:42, Flavio Donadio wrote:
> Ok, I can create the NSSegmentedControl in code, but I got to have an NSView
> to load it into, anyways.
I have an NSSearchField in a toolbar. It is a subview of an NSToolbarItem, not
of an NSView.
And again, unless you need to be popping thi
Graham,
Thanks for the answer, but I think you didn't get what I want to do. Or I
didn't make myself clear enough.
> Either create the control in code or create it in IB. Don't do both.
Ok, I can create the NSSegmentedControl in code, but I got to have an NSView to
load it into, anyways. Even
On May 4, 2010, at 5:46 PM, Graham Cox wrote:
> I haven't found a need to use toolbar groups myself (though presumably they
> solve a problem I haven't needed to solve so far)
AFAICT, multiple labels on a single toolbar item?
--
Seth Willits
___
On 05/05/2010, at 9:54 AM, Flavio Donadio wrote:
> Finally, in Interface Builder, I inserted an NSSegmentedControl in my toolbar
> and bound it to the outlet in the App Delegate instance in the NIB.
>
> It doesn't work. My segmented control doesn't get the images or labels.
> Should it be don
On Mar 4, 2010, at 8:40 PM, David Blanton wrote:
> Is it possible to change the height of an NSSegmentedControl?
>
> IB gives access the the width of segments but not height.
>
> If subclass what would the method be to change the height?
>
> -db
Could it just be that it's the height of the vi
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
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 che
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
> pos
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
h
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 fou
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 mod
On 11 Sep 2009, at 11:08, Peter Ammon wrote:
This style is not available on Tiger. If you want to make it look
the same on Tiger and later, you will have to make your own custom
control. It's easier to just live with the appearance on Tiger.
That's true but if you have the time, inclinat
On Sep 11, 2009, at 8:10 AM, Arun wrote:
Hi All,
Does anybody know how to create an NSSegmentedControl with squared
edges ?
If anyone has sample code please share..
I know if i use leopard SDK, by just changing a style in the IB we can
achieve this. But since my app needs to support on tige
On Mar 24, 2009, at 3:54 AM, Michele Barboni wrote:
On Mar 19, 2009, at 10:11 AM, Michele Barboni wrote:
Hi,
I've a NSSegmentedControl, 7 segments (labeled with weekdays),
which has selectedIndex bound through a value transformer (NO
reverse transformation) to NSDates.
Now, one of my a
On Mar 19, 2009, at 10:11 AM, Michele Barboni wrote:
Hi,
I've a NSSegmentedControl, 7 segments (labeled with weekdays), which
has selectedIndex bound through a value transformer (NO reverse
transformation) to NSDates.
Now, one of my awakeFromNib do this:
[sedutaDays setTarget:self];
[sed
Hey Hamish.
Yea, that's correct. There's no "segment" object to bind. Not in the
same way that tableviews have individual column objects or menus have
individual menu items.
Still, go ahead and file an enhancement request describing, broadly,
what you're trying to do.
--
48 matches
Mail list logo