Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8392739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:35:39+00:00 2026-06-09T19:35:39+00:00

I sorted the NSTableColumn using the sort descriptors . I used the following code

  • 0

I sorted the NSTableColumn using the sort descriptors. I used the following code for Sorting.

 NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"Column3" ascending:NO];
        NSArray *sortDescriptors= [NSArray arrayWithObject:sortDescriptor];
        [self.dataArray sortUsingDescriptors:sortDescriptors];

[tableView setIndicatorImage:[NSImage imageNamed:@"NSAscendingSortIndicator"]
                          inTableColumn:[tableView tableColumnWithIdentifier:@"Column3"]]; 

I am able to get the image from [NSImage imageNamed:@"NSAscendingSortIndicator"],but Iam not able to view the image in the tableview header.

Is there any way to simulate the mouse click on the table column to get that Sort indicator(up or down arrow in the table header) in the table column.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:35:41+00:00Added an answer on June 9, 2026 at 7:35 pm

    Following Code will update the Sort indicator with out clicking on the header.

    [self.tableView setSortDescriptors:sortDescriptors];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having sorted the tag_counts hash via the following code: sorted_tags = Contact.tag_counts.sort{ |x,y| x.name.downcase
I'm using sorted sets in the following way. I have a normal set called
I have a NSTableView with 3 columns. I can sort using any of the
Given the following sorted integers: 1 2 3 4 5 6 7 8. How
var sorted = results.sort(function (a, b) { var nameA = ; var nameB =
Possible Duplicate: Sorted ArrayList not displaying? Code: String title1 = Original Order\n\n; String title2
My Map contains keys sorted in alphabetical order. When I display it, I'm using
Given a sorted vector with a number of values, as in the following example:
I have the following sorted data: AAA AAA TCG TTT TTT TTT I want
I sorted an array using an algorithm and when I was going trough a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.