• 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: Modesitt Software <email@hidden>
  • Date: Wed, 18 May 2005 16:21:22 -0700


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


I also have this problem with my tableview.  In IB, I set the size of the control to small, which helps somewhat, but then the text size doesn't match the text in the other columns. I saw a few posts in the past about this, and no one seems to have a good fix.  I was hoping it would be fixed in Tiger, but no such luck.  Hopefully some Apple engineer will provide feedback on this issue.

-Bill


 _______________________________________________
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: Robert McNally <email@hidden>
  • Prev by Date: Getting the NSDateFormatter strings from the user's preferences
  • Next by Date: Re: How best to archive in CSV format
  • 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