Skip navigation.
 
mlRe: Why did I prefix the key of an NSSortDescriptor with "@"?
FROM : Ricky Sharp
DATE : Tue Jul 25 23:05:21 2006

On Jul 25, 2006, at 2:51 PM, Jerry Krinock wrote:

> I'm trying to re-use some code I wrote a few months ago for
> tableView:didClickTableColumn.  This method sorts the clicked 
> column and
> flips the up/down triangle.
>
> I notice that, for some reason which I cannot remember but vaguely 
> recall
> activated some semi-secret feature, I prefixed the character "@" 
> onto the
> tableColumn's identifier (string) before passing it as the key to to
> NSSortDescriptor's initWithKey:ascending method.
>
> I cannot find any notes or any mention of that "@" in searching
> documentation today.  Am I imagining things?
>
> Jerry Krinock
>
> - (void)tableView:(NSTableView *)tableView
>  didClickTableColumn:(NSTableColumn *)tableColumn {
>
>    //*** Here is where I add the prefix:****************
>    NSString* key = [NSString stringWithFormat:@"@%@",
>                        [tableColumn identifier]] ;


[rest of code snipped]

Could this be somehow related to bindings?

___________________________________________________________
Ricky A. Sharp        mailto:<email_removed>
Instant Interactive(tm)  http://www.instantinteractive.com

Related mailsAuthorDate
mlWhy did I prefix the key of an NSSortDescriptor with "@"? Jerry Krinock Jul 25, 21:51
mlRe: Why did I prefix the key of an NSSortDescriptor with "@"? Ricky Sharp Jul 25, 23:05