Re: Formatter for a matrix of edit fields. Minor questions.
Re: Formatter for a matrix of edit fields. Minor questions.
- Subject: Re: Formatter for a matrix of edit fields. Minor questions.
- From: Brian Webster <email@hidden>
- Date: Tue, 25 Mar 2003 15:28:47 -0600
On Tuesday, March 25, 2003, at 01:40 PM,
email@hidden wrote:
Is it possible to set all edit fields in a matrix of edit fields with
the same formatter in Interface Builder? NSMatrix has an outlet for
'formatter' but it doesn't seem to have any effect. And I don't see how
I can set the NSMatrix's prototype with a formatter.
If you drag a text field from the palette, drop the formatter on it,
and then option-drag to create the matrix, this appears to give each
cell the same formatter. There doesn't seem to be a way to apply the
formatter to the matrix after creating it, though.
Another one. How would I be able to call my code every time the user
modifies the value of one of the cells? For example, if the user were
to type '17' in a cell, so I can react both to the 1 and the 7 being
typed.
Implement the controlTextDidChange: method in the matrix's delegate.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.