swarm-support
[Top][All Lists]
Advanced

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

drop usage for list;


From: xueyue
Subject: drop usage for list;
Date: Mon, 19 Jul 1999 17:37:38 +0000

here is a minor problem I met:
suppose I have a object, x, and:
[x displayList: list]; 
will display the content of 'list'. If list=nil, or 
list has no content, i.e. [list getCount]==0, then 
-displayList will simply do nothing, otherwise, the 
members of the list will be displayed.
The following will work:
(1) list=[List create: [self getZone]];
    [x displayList: list];
     [list drop];
     list=nil;
     [x displayList: list];
     ....
however, the following will not work:
(2) list=[List create: [self getZone]];
    [list drop];
     [x displayList: list];
    ......

The problem seems come from that after [list drop] is 
executed, list does not exist anymore, and it is not 
'nil' either. Is it NULL?

Attachment: vcard.vcf
Description: Card for Xueyue Huang


reply via email to

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