Hi guys,
Another question from me

. So I have a NSTableView, and I am adding items to it by doing this:
[code]- (void)addSnippet

id)sender
{
TagSnippet *newSnippet = [TagSnippet snippet];
[newSnippet setTitle:NSLocalizedString(@"Untitled", nil)];[listOfSnippets addSnippet:newSnippet];
[snippetTableView reloadData];
[snippetTableView selectRow

[listOfSnippets count] - 1) byExtendingSelection:NO];
[snippetTableView editColumn:0 row

[listOfSnippets count] - 1) withEvent:nil select:YES];
}
This basically add an item into my NSTableView with the title Untitled, and highlights it for editing. What I want to do is, if in the table view is a title that is the same as the one just entered, bring up a dialog or sheet.
I've looked on Mamasam, and can't find anything about comparing items. Same with the docs of NSTableView. Just a quick overview of my code above:
newSnippet is my snippet object.
listOfSnippets is a NSMutableArray which holds all my snippets.
snippetTableView is the actual table view which holds all snippets.
Any ideas/code really appreciated,
Oliver