Re: How to setup NSMatrix with IB?
Re: How to setup NSMatrix with IB?
- Subject: Re: How to setup NSMatrix with IB?
- From: Carlos Weber <email@hidden>
- Date: Tue, 19 Jun 2001 00:06:46 -1000
On Monday, June 18, 2001, at 10:03 PM, Youngjin Kim wrote:
Hi,
I'm having difficulty in setting up NSMatrix with IB. Maybe I'm doing
this all wrong. What I want to do is setting a NSMatrix and put some
NSCells in it with IB. I created a custom view then set it as a
NSMatrix by clicking NSMatrix item in custom class palette. The custom
view's title changed to 'NSMatrix' correctly but when I select it in
window, IB's inspector doesn't show any NSMatrix specific data-such as
row,col etc- in info palette. The palette just shows that the custom
view is an instance of NSMatrix.
The way to do this is very far from being obvious or intuitive, but this
is the way it goes:
Start by dragging just ONE of whatever kind of cell you want to populate
your NSMatrix with onto your enclosing view. Then, option-drag the
selected cell by one of the middle dragging widgets (not the corner
ones), and the cell will miraculously reproduce itself and become a
matrix of cells in whatever direction you are dragging. If, e.g., you
start by dragging the right middle widget you will get a row of cells.
Then, if you drag by the bottom middle widget, you will reproduce
additional rows to enlarge your matrix vertically. Try it; it's easier
to do than to explain, but it's pretty impossible to discover for
yourself unless someone points the way for you!