Size of comboboxes in an NSTableView / NSTableColumn
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