• 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: NSMatrix rows and columns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMatrix rows and columns


  • Subject: Re: NSMatrix rows and columns
  • From: Andy Lee <email@hidden>
  • Date: Tue, 18 Oct 2005 09:49:09 -0400

On Oct 18, 2005, at 9:06 AM, Francesca P wrote:
But do you know if exist a method to add row without cells?
I add an empty row, then I add column, and when I add another row It has already all empty cells...

Sounds like you don't actually want to add a row (which by definition contains cells) -- you just want the matrix to resize when the window resizes, and have the existing cells stay where they are?


I'm not sure offhand if this helps, but see -setAutosizesCells: (in NSMatrix).

You might also want to set the resize behavior of the matrix in IB so that it automatically resizes with the window (select the matrix and hit Command-3).

If you need more low-level control over resize behavior, you might also subclass NSMatrix and override viewWillStartLiveResize and/or viewDidEndLiveResize.

--Andy

_______________________________________________
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: NSMatrix rows and columns
      • From: Francesca Placido <email@hidden>
References: 
 >Re: NSMatrix rows and columns (From: Ian was here <email@hidden>)
 >Re: NSMatrix rows and columns (From: Francesca P <email@hidden>)

  • Prev by Date: Re: how to get application starts automatically
  • Next by Date: Re: how to get application starts automatically
  • Previous by thread: Re: NSMatrix rows and columns
  • Next by thread: Re: NSMatrix rows and columns
  • Index(es):
    • Date
    • Thread