Questions tagged [nssegmentedcontrol]

An NSSegmentedControl object implements a linear set of two or more segments, each of which functions as a button. It is available in OS X v10.3 and later. It is declared in Apple's AppKit framework

The NSSegmentedControl class uses an NSSegmentedCell class to implement much of the control's functionality. Most methods in NSSegmentedControl are simply cover methods that call the corresponding method in NSSegmentedCell.

The methods of NSSegmentedCell that do not have covers relate to accessing and setting values for tags and tool tips, programmatically setting the key segment, and establishing the mode of the control.

Source: NSSegmentedControl class reference

68 questions
0
votes
1 answer

NSScrollView doesn't scroll when adding NSSegmentedControl

I have an empty NSScrollView created with Interface Builder. And in my code I add, upon a user click, a NSSegmentedControl. For all the next clicks, I add a segment to it. My problem is that, once I reach the visual limit of NSScrollView, it doesn't…
Kalzem
  • 7,320
  • 6
  • 54
  • 79
0
votes
1 answer

NSSegmentedControl Selected Segment in User Defaults

Having a problem storing the selectedSegment of segmented control in the User Defaults. I'm using the Segment Selection binding and doing this to set and call the default: [[NSUserDefaults standardUserDefaults] setObject: [modeSegController…
Paul
  • 189
  • 10
0
votes
1 answer

NSSegmentedControl (subclass NSSegmentCell) Text Color

I create a NSSegmentedControl as multiple badge for a Sourcelist. The first segment has a green Color and shows a count of items which matched different rules. The second segment has a red color and counts unmatched rules. The NSSegmentedControl is…
Konobi
  • 401
  • 1
  • 6
  • 14
0
votes
1 answer

How to make an evenly spaced NSSegmentedControl?

I have a NSSegmentedControl that I want to set the width and I want this control to fill all the space I have given to it. Also, I want the segments of the NSSegmentedControl to be evenly spaced among all segments (independently of available space…
Danilo Carvalho
  • 385
  • 4
  • 17
0
votes
1 answer

Action on segment click in Xcode 4.6.1

In the new version of Xcode don't see any way to start IBAction when the segment is clicked.
deni
  • 119
  • 1
  • 1
  • 11
0
votes
1 answer

NSTableView + NSSegmentedControl + NSSegmentSwitchTrackingSelectAny

I've got a table view which has an NSSegmentedCell for its right-most column. The NSSegmentedControls which the cells are pulled from are using the "any" tracking mode (aka: multiple selection) and the segments are selected based on a bitfield with…
AJ.DE
  • 185
  • 1
  • 7
0
votes
1 answer

NSSegmentedControl setFrame ignored ? (customizing NSSegmentedControl)

I want to customize a NSSegmentedControl. The first thing I want to do is to change the height on the controller. In interface builder the height field for a NSSegmentedControl is disabled. So I simple try to change its height changing its frame in…
-1
votes
1 answer

NSSegmentedControl wrong layouting with Interface Builder Xcode 6.1.1

I'm trying to put a NSSegmentedControl in a NSWindow but have Problem to put it at right Position. What i want is to lay the NSSegmentedControl direct under the NSToolbar. The issue: If i put it direct under the NSToolbar [1] with Interface Builder,…
1 2 3 4
5