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

  • SEARCH
  • Home
  • 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 3794312
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:54:37+00:00 2026-05-19T12:54:37+00:00

The truncation can be easily set for the main text area but the popup

  • 0

The truncation can be easily set for the main text area but the popup does not do any truncation, with similar paths, users cannot tell which path is which.

or is the a way to change the width of the popup list to match the longest string so that truncation is not needed?

  • 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-05-19T12:54:38+00:00Added an answer on May 19, 2026 at 12:54 pm

    There is no official way to do this, unfortunately.

    There is a way to do it which, though it doesn’t use any private methods, relies on the way NSComboBoxes are implemented internally, and that could change at any time. This would probably would not be acceptable in the App Store.

    If you subclass NSComboBoxCell and implement the NSTableViewDelegate method tableView:willDisplayCell:forTableColumn:row:, you can modify the text cell before it is displayed in the combo box’s popup window.

    - (void)tableView:(NSTableView *)tableView
            willDisplayCell:(NSCell *)cell
            forTableColumn:(NSTableColumn *)tableColumn
            row:(NSInteger)rowIndex
    {
       [cell setTruncatesLastVisibleLine:YES];
       [cell setLineBreakMode:NSLineBreakByTruncatingMiddle];
    }
    

    This works because the popup list is implemented internally with an NSTableView, and the table view’s delegate is set to the popup cell.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In short: how can I execute a+b such that any loss-of-precision due to truncation
Is there any good way of truncating text with plain HTML and CSS, so
I am applying truncation using CSS styles: .yui-skin-sam td:not(.yui-dt-editable) .yui-dt-liner{ white-space: nowrap; overflow: hidden;
I am trying to rename the title of my application's main window, but when
I trying to get a backtrace with rspec but I can't get it working
How can I influence the width of a BarBackButtonItem. The title of my former
I'm having this same problem : How can I truncate a VARCHAR to the
I know really little about sql, can anyone give me a deeper explanation (or
I'm saving whole HTML documents in the database with ActiveRecord. I can see in
Is it possible to set the next value of an autoincrement field in SQL

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.