• 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: How to force an initial column sort with NSTableView and controller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to force an initial column sort with NSTableView and controller?


  • Subject: Re: How to force an initial column sort with NSTableView and controller?
  • From: Alexander Lamb <email@hidden>
  • Date: Thu, 22 Jun 2006 15:53:31 +0200

I actually use this (from IB), the problem is not the sorting which works fine, the problem is to trigger the sort automatically when the table is loaded (and show the sort triangle in the correct column).

Somehow a function which would say:

- setSortsAutomaticallyOnLoadOnColumnWithIdentifier:@"name"

Alex
--
Alexander Lamb
email@hidden



On Jun 22, 2006, at 2:15 PM, I. Savant wrote:


Check out the documentation for NSTableColumn. Specifically: - setSortDescriptorPrototype: ...


--
I.S.


On Jun 22, 2006, at 5:18 AM, Alexander Lamb wrote:

Hello list,

I have a core data application.

I would like to force the sort on a given column when the data is loaded in my NSArrayController and displayed in the NSTableView. Sorting works fine manually (e.g. when clicking on the column header) so I would like to do as if the used had clicked.

I know I can sort programmatically the objects in my controller, but I want to show the visual feedback of my column with the little sort triangle.

Thanks,

Alex
--
Alexander Lamb
email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden


_______________________________________________ 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
  • Follow-Ups:
    • Re: How to force an initial column sort with NSTableView and controller?
      • From: George Orthwein <email@hidden>
References: 
 >How to force an initial column sort with NSTableView and controller? (From: Alexander Lamb <email@hidden>)
 >Re: How to force an initial column sort with NSTableView and controller? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Cocoa Application build fails gives unknown symbol '___dso_handle'
  • Next by Date: NSUndoManager, NSTextView and exotic localization
  • Previous by thread: Re: How to force an initial column sort with NSTableView and controller?
  • Next by thread: Re: How to force an initial column sort with NSTableView and controller?
  • Index(es):
    • Date
    • Thread