• 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: bindings, tables and custom sort selector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindings, tables and custom sort selector


  • Subject: Re: bindings, tables and custom sort selector
  • From: Andreas Mayer <email@hidden>
  • Date: Fri, 21 Jul 2006 08:09:25 +0200


Am 21.07.2006 um 07:24 Uhr schrieb Adam Knight:

I can assure you that it does work for me with the stock sorting functions, though. :\

Got it working, too. Thanks!

My problem was, that I did specify a different sort descriptor in - windowDidLoad. That somehow seems to have invalidated the setting made from within interface builder.

I'm using my new selector now, and all is well:

old:

NSSortDescriptor *sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"identifier" ascending:YES selector:@selector(compare:)] autorelease];
[myArrayController setSortDescriptors:[NSArray arrayWithObject:sortDescriptor]];


new:

NSSortDescriptor *sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"identifier" ascending:YES selector:@selector (numericCompare:)] autorelease];
[myArrayController setSortDescriptors:[NSArray arrayWithObject:sortDescriptor]];


It will work without these lines. It's just that I want the table to be initially sorted by that column.


Andreas

_______________________________________________
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: 
 >Re: bindings, tables and custom sort selector (From: Matt Neuburg <email@hidden>)
 >Re: bindings, tables and custom sort selector (From: Andreas Mayer <email@hidden>)
 >Re: bindings, tables and custom sort selector (From: Adam Knight <email@hidden>)

  • Prev by Date: How to get the image mask path
  • Next by Date: converting com.apple.mail.plist to xml format
  • Previous by thread: Re: bindings, tables and custom sort selector
  • Next by thread: Re: bindings, tables and custom sort selector
  • Index(es):
    • Date
    • Thread