[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some small proposals
From: |
mirko . viviani |
Subject: |
Re: Some small proposals |
Date: |
Thu, 21 Jun 2001 10:04:02 +0000 |
You wrote:
> it was ME who had the idea to use NSNotFound, and that was the reason I
> wrote the original mail. I think that NSNotFound would be more accurate
> than -1, even if the specification says otherwise, and I wanted to
> discuss this.
I think that NSNotFound is not appropriate for the selectedItem and here they
are using -1
NSNotFound is used when the method do a search (index of objects), ranges and
so on.
> In the meanwhile I checked the most current specification
> from Apple and noticed that they are starting to use NSNotFound for some
> return values as well.
Have you noticed that Apple now use NSNotFound where in the past they used -1 ?
(maybe ranges ??)
--
Bye,
Mirko