• 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
Size of comboboxes in an NSTableView / NSTableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Size of comboboxes in an NSTableView / NSTableColumn


  • Subject: Size of comboboxes in an NSTableView / NSTableColumn
  • From: Felix Schwarz <email@hidden>
  • Date: Tue, 17 May 2005 10:08:15 +0200

Hi everyone,

I want to use a NSComboBoxCell inside a NSTableColumn and experience problems regarding the sizing of the cell.

Please have a look at this screenshot: http://www.wapapp.de/shot.jpg

While normal NSTextFieldCells work fine (the "land" and "nature" entries), the NSComboBoxCell gets cut off and has a different vertical offset.

I use this code to create the NSComboBoxCell in the screenshot:

        cell = [[NSComboBoxCell alloc] init];

        [cell addItemWithObjectValue:@"Test entry"];
        [cell addItemWithObjectValue:@"More tests"];
        [cell setButtonBordered:FALSE];
        [cell setBezeled:FALSE];
        [cell setBordered:FALSE];
        [cell setEditable:YES];
        [cell setCompletes:YES];
        [cell setDrawsBackground:NO];

How can I create a NSComboBoxCell that fits into a standard NSTableView / NSTableColumn cell.

Thanks in advance!

Best regards,
Felix Schwarz
_______________________________________________
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: Size of comboboxes in an NSTableView / NSTableColumn
      • From: Steven Kramer <email@hidden>
  • Prev by Date: Re: Which Quicktime API?
  • Next by Date: Re: OpenGL and Tiger
  • Previous by thread: Re: Building with XCode 2 for Jag and Panther
  • Next by thread: Re: Size of comboboxes in an NSTableView / NSTableColumn
  • Index(es):
    • Date
    • Thread