• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why did I prefix the key of an NSSortDescriptor with "@"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why did I prefix the key of an NSSortDescriptor with "@"?


  • Subject: Re: Why did I prefix the key of an NSSortDescriptor with "@"?
  • From: Ricky Sharp <email@hidden>
  • Date: Tue, 25 Jul 2006 16:05:21 -0500


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@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
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


References: 
 >Why did I prefix the key of an NSSortDescriptor with "@"? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: ZIP archives
  • Next by Date: How would you convert a \r to its UTF-8 counterpart ?
  • Previous by thread: Why did I prefix the key of an NSSortDescriptor with "@"?
  • Next by thread: How would you convert a \r to its UTF-8 counterpart ?
  • Index(es):
    • Date
    • Thread