FROM : Steve Bird
DATE : Wed Jul 05 15:08:39 2006
On Jul 5, 2006, at 1:32 AM, Rex Fernando wrote:
> Hello,
>
> I have a table with data in it. When someone clicks the remove
> button, I get the selection array and remove all the objects in it.
> If there is an empty selection, I am told index out of bounds,
> naturally, because there are no items in the array. Can I just
> leave this error? Or should I make a catch for it?
A truly Mac-like rule to follow is: don't enable the button if it
won't work.
If the REMOVE button will cause an error message, then I should not
be able to operate it.
I would suggest enabling/disabling the button when the selection
changes.
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
DATE : Wed Jul 05 15:08:39 2006
On Jul 5, 2006, at 1:32 AM, Rex Fernando wrote:
> Hello,
>
> I have a table with data in it. When someone clicks the remove
> button, I get the selection array and remove all the objects in it.
> If there is an empty selection, I am told index out of bounds,
> naturally, because there are no items in the array. Can I just
> leave this error? Or should I make a catch for it?
A truly Mac-like rule to follow is: don't enable the button if it
won't work.
If the REMOVE button will cause an error message, then I should not
be able to operate it.
I would suggest enabling/disabling the button when the selection
changes.
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
| Related mails | Author | Date |
|---|---|---|
| Rex Fernando | Jul 5, 07:32 | |
| Chris Suter | Jul 5, 07:49 | |
| Sherm Pendley | Jul 5, 08:33 | |
| Julio Cesar Silva… | Jul 5, 14:15 | |
| Steve Bird | Jul 5, 15:08 | |
| Daniel Jalkut | Jul 6, 19:22 | |
| Steve Christensen | Jul 6, 22:00 | |
| I. Savant | Jul 7, 14:41 |






Cocoa mail archive

