🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #17

Re: PopUpList Question

#17
From: charlie
Date: Tue, 27 Oct 1992 21:26
37 lines
1498 bytes
In article <1992Oct27.153629.16802@pencom.com> msanford@finn  
(Mike Sanford) writes:
> 
> 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

I have exactly that code in one of my apps and it works
correctly. Are you sure that aPopUpList is not nil?

--
Charles Spitzer
charlie@snowflake.az.stratus.com
Telecom Customer Assistance Center
Stratus Computer, Inc.
Phoenix, AZ  85018
Technical Details
Message-ID: <7584@transfer.stratus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!noose.ecn.purdue.edu!samsung!transfer!snowflake.az.stratus.com!charlie
References: <1992Oct27.153629.16802@pencom.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!noose.ecn.purdue.edu!samsung!transfer!snowflake.az.stratus.com!charlie
From: charlie@snowflake.az.stratus.com
Newsgroups: comp.sys.next.programmer
Subject: Re: PopUpList Question
Message-ID: <7584@transfer.stratus.com>
Date: 27 Oct 92 21:26:53 GMT
References: <1992Oct27.153629.16802@pencom.com>
Sender: usenet@transfer.stratus.com
Reply-To: charlie@snowflake.az.stratus.com
Lines: 37