NSSegmentedCell in an NSTableView
NSSegmentedCell in an NSTableView
- Subject: NSSegmentedCell in an NSTableView
- From: email@hidden
- Date: Thu, 02 Dec 2004 11:58:57 +0000
Hi
Has anyone successully used an NSSegmentedCell in an NSTableVIew?
The follwing code, in windowDidLoad:, does display a two segment control, but...
1. It draws the background for the left hand segment only, the right hand segment had no drawn background, just the label. This is regardless of how big I make the table's cell.
2. It does not honour setTrackingMode: but always works in the momentary mode.
Here's my code:
NSSegmentedCell *sc = [[[NSSegmentedCell alloc] init] autorelease];
[sc setSegmentCount:2];
[sc setLabel:@"Fit" forSegment:0];
[sc setLabel:@"Fill" forSegment:1];
[sc setTrackingMode:NSSegmentSwitchTrackingSelectOne];
tc = [_orderSummaryTable tableColumnWithIdentifier:@"summaryScaling" ];
[tc setDataCell:sc];
Duncan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden