• 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: Core DataTableView Column Sort at launch with bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core DataTableView Column Sort at launch with bindings?


  • Subject: Re: Core DataTableView Column Sort at launch with bindings?
  • From: vince <email@hidden>
  • Date: Mon, 22 Dec 2008 21:50:17 -0500

I got this working:
I placed the following in my windowControllerDidLoadNib method:

NSSortDescriptor * sorter = [[NSSortDescriptor alloc] initWithKey:@"nameColumn"
ascending:YES];

[myArrayController setSortDescriptors:[NSArray arrayWithObject:sorter]];


I set the table sorting properties to:

Ascending

Sort Key: nameColumn

Selector: caseInsensitiveCompare:


Now the column Header is selected when the application starts up and the
nameColumn remains sorted in ascending order.

-v.







On Mon, Dec 22, 2008 at 4:12 PM, vince <email@hidden> wrote:

> Thanks for the help ...
> Is it possible to set up my Core Data doc application's Bindings so that
> upon launch my mainColumn header is selected and the column is pre-sorted
> (ascending) without implementing code?
>
> thanks again.
>
> vince.
>
>
>
>
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Core DataTableView Column Sort at launch with bindings? (From: vince <email@hidden>)

  • Prev by Date: Re: observeValueForKeyPath and how to do it right
  • Next by Date: Re: NSString property: copy or retain?
  • Previous by thread: Core DataTableView Column Sort at launch with bindings?
  • Next by thread: NSString property: copy or retain?
  • Index(es):
    • Date
    • Thread