groups

name language licence
NSTreeNode indexPathOfNodeWithRepresentedObject Objective-C MIT
Convert a number to text Perl MIT
Exact Table Cell Value Double-Clicked (through Bindings) Objective-C Other
Animating Progress Indicator in Menu Objective-C Other
NSDate Additions for Time Intervals since System Startup Objective-C Other
Pop Contextual Menu on standard button mouseDown: Objective-C Other
watchpoint for properties Other Other
NSObject executeAfterDelay:handler: Objective-C MIT

< 1 2 3 4 >



language: Objective-C
licence: Other

Exact Table Cell Value Double-Clicked (through Bindings)

options: view full snippetsend to code collector
// For a table that's getting its values via Bindings, if you want on double-click to find the value of the exact cell
// that was double-clicked, this is one way.
-(void) awakeFromNib
{
	[dbTableView setTarget:self];
	[dbTableView setDoubleAction:@selector( doubleClickedTable: )];
}

-(void) doubleClickedTable:(id)sender
{
	if( ([sender clickedRow] > -1) && ([sender clickedColumn] > -1) )
	{
		NSDictionary *rowDict = [[searchResultsArrayController arrangedObjects] objectAtIndex:[sender clickedRow]];

		NSDictionary *tableColumnValueBindingDict = [[[sender tableColumns] objectAtIndex:[sender clickedColumn]] infoForBinding:@"value"];
	
(Continues...)