Re: Formatting the cells in NSTableView
Re: Formatting the cells in NSTableView
- Subject: Re: Formatting the cells in NSTableView
- From: Larry Fransson <email@hidden>
- Date: Sat, 24 Apr 2004 12:06:04 -0700
On Apr 24, 2004, at 10:46, Vikram Vyas wrote:
I would like that user should be able to enter only positive numbers
in monthly rainfall columns, and a year greater than 1900 in the year
column. Would appreciate any help on this.
Have you looked at the number formatters in Interface Builder? Just
drop a formatter on the column you want formatted, and set up the
formatter in the inspector (Cmd-9) for the column. You can delete the
negative format to allow only positive numbers, and to set a date of
1900 or later, you can set a minimum of 1900. Should those formatters
not meet your needs, you can write your own. Just look in the docs for
NSFormatter.
Larry Fransson
Seattle, WA
_______________________________________________
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.