• 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
Sizing NSMatrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sizing NSMatrix


  • Subject: Sizing NSMatrix
  • From: Herbert Putteneers <email@hidden>
  • Date: Tue, 20 Dec 2005 16:24:48 +0100

How can you make an NSMatrix fit exactly within certain bounds.
Apparently the cellwidth the matrix calculates can not be fractional.

When you create a 5x4 matrix, x- and y-spacing 0, then you can set its width to 145; the leftmost cell border is at x = 0 and the rightmost cell has the right border at 145. Increase the width to 146 and the right border stays put, leaving a 1 point gap. This continues until you reach a width of 150. 5 Columns, multiples of 5? It looks like NSMatrix is not using a fraction in its calculation.

Is there any way around this?

Thanks,

Herbert Putteneers
_______________________________________________
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: Sizing NSMatrix
      • From: glenn andreas <email@hidden>
  • Prev by Date: Re: Implementing a scrollable icon-table
  • Next by Date: Re: Implementing a scrollable icon-table
  • Previous by thread: Re: string at any coordinate
  • Next by thread: Re: Sizing NSMatrix
  • Index(es):
    • Date
    • Thread