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

Re: Size of comboboxes in an NSTableView / NSTableColumn


  • Subject: Re: Size of comboboxes in an NSTableView / NSTableColumn
  • From: Felix Schwarz <email@hidden>
  • Date: Wed, 18 May 2005 20:33:06 +0200

Hello Steven,

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've seen the same. I think I fixed it by a combination of adjusting the row height and setting the combobox's control size (setControlSize:). I never got it completely right, though. Alignment and clipping issues remained...


Ex: [[combo cell] setControlSize:NSSmallControlSize];

Thank you. What I've found out to work best is this:

[retObject setControlSize:NSMiniControlSize];
[retObject setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];


The biggest problem here, though, is, that the up and down arrows are suddenly "aquafied" again in NSMiniControlSize.

It would be great to get feedback from an Apple engineer on this issue - and if it's only a "getting this to work properly is near to or completely impossible right now". I (and probably others) at least can stop trying to get it work properly then ;-) Thanks in advance!

Best regards,
Felix
_______________________________________________
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


References: 
 >Size of comboboxes in an NSTableView / NSTableColumn (From: Felix Schwarz <email@hidden>)
 >Re: Size of comboboxes in an NSTableView / NSTableColumn (From: Steven Kramer <email@hidden>)

  • Prev by Date: Re: NEWBIE: Why use protocols?
  • Next by Date: Spotlight Plugin Woes
  • Previous by thread: Re: Size of comboboxes in an NSTableView / NSTableColumn
  • Next by thread: Re: Size of comboboxes in an NSTableView / NSTableColumn
  • Index(es):
    • Date
    • Thread