All pastes #898146 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-10 03:03 UTC
rendered paste body
- (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item
{
	NSCell * myCell = [tableColumn dataCellForRow:[outlineView rowForItem:item]];
	
	[myCell setAllowsEditingTextAttributes: YES];
    [myCell setSelectable: YES];
	NSURL* theURL = [NSURL URLWithString:@"http://www.apple.com"];
	NSMutableAttributedString * attr = [NSMutableAttributedString hyperlinkFromString:[myCell stringValue] withURL:theURL];
	[myCell setAttributedStringValue:attr];
}