[Top][All Lists]

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

Re: NSPopupButton itemAtIndex:

From: Fred Kiefer
Subject: Re: NSPopupButton itemAtIndex:
Date: Sat, 13 Sep 2003 15:37:35 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

Rob Burns wrote:
This is from older Apple docs. The OpenStep docs say something similar.


   - (id <NSMenuItem>)itemAtIndex:(int)index

Returns the list item at index. If there is no item at index, this method
   returns nil.

In GNUstep it appears to raise an NSRangeException if there is no item at the given index.

OK, change NSPopupButtonCell to behave that way. Although I find it inconsistent.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]