Article View: comp.sys.next.programmer
Article #12PopUpList Question
From: Mike Sanford
Date: Tue, 27 Oct 1992 15:36
Date: Tue, 27 Oct 1992 15:36
20 lines
989 bytes
989 bytes
This is the deal. I want to remove the items from a popuplist and put in
new items. The following method does not work correctly.
- deleteAllItems:aPopUpList
{
while ([aPopUpList count])
[aPopUpList removeItemAt:0];
return self;
}
Execution does leave the method making me think that aPopUpList is empty,
however, the item that is selected when this methods is invoked is not
removed.
I guess I could programmatically (yuk!) create a new popUpList and replace
the old one, but that still doesn't answer my question about why my method
doesn't work correctly.
- Mike
Technical Details
Message-ID:
<1992Oct27.153629.16802@pencom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!swrinde!news.dell.com!dellunix!uudell!pensoft!usenetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!swrinde!news.dell.com!dellunix!uudell!pensoft!usenet From: msanford@finn (Mike Sanford) Newsgroups: comp.sys.next.programmer Subject: PopUpList Question Message-ID: <1992Oct27.153629.16802@pencom.com> Date: 27 Oct 92 15:36:29 GMT Sender: usenet@pencom.com (Usenet Pseudo User) Organization: Pencom Software Lines: 20