• 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: Sorting NSStrings in NSTableColumn (need 10 after 9)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting NSStrings in NSTableColumn (need 10 after 9)


  • Subject: Re: Sorting NSStrings in NSTableColumn (need 10 after 9)
  • From: Lee Morgan <email@hidden>
  • Date: Fri, 8 Apr 2005 21:21:51 -0400

Thanks for the help guys.
I got it worked out, I made a subclass of NSSortDescriptor and set up the compareObject method to sort the items the way I needed, then at run time I just use setSortDescriptorPrototype to set my subclass to the sort descriptor for my column. It works quite well; although I don't know if it is the "correct" way to do this.


- lee

_______________________________________________
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: 
 >Sorting NSStrings in NSTableColumn (need 10 after 9) (From: Lee Morgan <email@hidden>)
 >Re: Sorting NSStrings in NSTableColumn (need 10 after 9) (From: Ricky Sharp <email@hidden>)
 >Re: Sorting NSStrings in NSTableColumn (need 10 after 9) (From: Tom Bradford <email@hidden>)
 >Re: Sorting NSStrings in NSTableColumn (need 10 after 9) (From: Lee Morgan <email@hidden>)

  • Prev by Date: Re: Unable to delete controls in Interface Builder
  • Next by Date: Put pdf on pasteboard / NSData from NSImage?
  • Previous by thread: Re: Sorting NSStrings in NSTableColumn (need 10 after 9)
  • Next by thread: Re: Where to enqueue coalescing notifications for typing? (solved)
  • Index(es):
    • Date
    • Thread