• 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: Matt Neuburg <email@hidden>
  • Date: Fri, 21 Jul 2006 08:23:18 -0700
  • Thread-topic: bindings, tables and custom sort selector

On Fri, 21 Jul 2006 08:09:25 +0200, Andreas Mayer <email@hidden>
said:

>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.

Right, and that is what I couldn't cause to happen by setting the values in
IB. I may have been confused about what you were after, but the solution you
describe, i.e. call setSortDescriptors: on the NSArrayController, is exactly
what I ended up with as well. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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

  • Prev by Date: writing huge C-array to a file
  • Next by Date: Re: Environment/permissions on NSTask-launched app
  • Previous by thread: Re: bindings, tables and custom sort selector
  • Next by thread: Problems printing an NSScrollView
  • Index(es):
    • Date
    • Thread