Re: NSMatrix rows and columns
Re: NSMatrix rows and columns
- Subject: Re: NSMatrix rows and columns
- From: Francesca Placido <email@hidden>
- Date: Tue, 18 Oct 2005 20:21:00 +0200
Il giorno 18/ott/05, alle ore 15:49, Andy Lee ha scritto:
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
Yes, I want:
1. to resize the matrix when the windows resize...
2. But also I want to add cells with a cicle for or while, only
adding cells that I need, and not empty cells!!!!
I will check setAutosizesCells... but I don't need to display smaller
or larger cells, but displaying them in different columns and rows...
Sorry for my bad english, I hope you can understand me...
_______________________________________________
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