• 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
add small (control size) column to table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

add small (control size) column to table view


  • Subject: add small (control size) column to table view
  • From: Scott Ribe <email@hidden>
  • Date: Fri, 14 May 2010 17:35:45 -0600

I'm dynamically setting up columns in a table view, and I cannot get them set up to display as NSSmallControlsSize. I try:

		[[col dataCell] setControlSize: NSSmallControlSize];

Immediately before and immediately after [resultsTbl addTableColumn:...], but it doesn't affect the text size. The table cells draw as regular size.

So what attributes is IB manipulating when you set a table view to small? If you've ever tried it, that immediately changes the "Text cell" text in all the columns to small. And if there are no columns in the table view, the setting does not stick, instead the size popup immediately redisplays "Regular". This implies that there's no size setting for the table view (I certainly don't see one in the docs), but that IB is setting (and getting) attributes of the table's children for size. The columns' cells seem like an obvious candidate, but I'm having no luck.

(BTW, I'm also setting the size of the header cell...)

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: add small (control size) column to table view
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: Looking for Cocoa Drawing Strategy Advice
  • Next by Date: Re: NSDrawThreePartImage - Strange scaling behavior, is it supposed to do that?
  • Previous by thread: Re: NSTreeController and remove:
  • Next by thread: Re: add small (control size) column to table view
  • Index(es):
    • Date
    • Thread