• 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: Tables created in code have different row height from those created in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tables created in code have different row height from those created in IB


  • Subject: Re: Tables created in code have different row height from those created in IB
  • From: Greg Herlihy <email@hidden>
  • Date: Mon, 20 Mar 2006 15:53:20 -0800
  • Thread-topic: Tables created in code have different row height from those created in IB

Yes, there are actually two such methods - but one is deprecated.

I would look at NSFont's defaultLineHeightForFont: (deprecated) and
NSLayoutManager's defaultLineHeightForFont: (its recommended replacement -
that cleverly re-uses the same name).

Greg



On 3/20/06 1:29 PM, "Peter Boctor" <email@hidden> wrote:

> If I drag out a table in IB, the default row height is 17. Creating a
> table in code [[NSTableView alloc] init] returns a table with a row
> height of 16 which not surprisingly looks squished. Why aren't the
> default values the same?
>
> More importantedly how do I work around this? I'd like the tabe to
> look correct if a future OS version changes the row height so I'd like
> to avoid a hardcoded call setting the row height to 17. Is there
> another call that will give me the proper row height?
>
> -peter
>  _______________________________________________
> 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


 _______________________________________________
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: Tables created in code have different row height from those created in IB
      • From: "Peter Boctor" <email@hidden>
References: 
 >Tables created in code have different row height from those created in IB (From: "Peter Boctor" <email@hidden>)

  • Prev by Date: Re: trackingRect can't be removed?
  • Next by Date: Re: Threading and NSViews
  • Previous by thread: Tables created in code have different row height from those created in IB
  • Next by thread: Re: Tables created in code have different row height from those created in IB
  • Index(es):
    • Date
    • Thread