[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically Create Buttons



On Mar 1, 2004, at 20:17, SD wrote:

> How would I programmatically create a bunch of buttons (based some 
> some input) and add them to a NSScrollView such that they are laid out 
> nicely (probably top to bottom).
>
> Any pointers to documentation or sample code would be appreciated.

	I did what I think you might be trying with an NSMatrix very easily, 
almost entirely inside InterfaceBuilder.  From there, you can add or 
remove cells of whatever type you want and the scrolling and alignment 
will be handled by the matrix.

--
SPY                      My girlfriend asked me which one I like better.
pub  1024/3CAE01D5 1994/11/03 Dustin Sallings <dustin@xxxxxxx>
|    Key fingerprint =  87 02 57 08 02 D0 DA D6  C8 0F 3E 65 51 98 D8 BE
L_______________________ I hope the answer won't upset her. ____________