[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getFirst in List ProbeDisplay crashes
From: |
Paul Johnson |
Subject: |
Re: getFirst in List ProbeDisplay crashes |
Date: |
Mon, 18 Sep 2000 13:35:21 -0500 |
address@hidden wrote:
>
> Is there anybody who can explain me why my swarm programs always crash at
> the moment that I use the getFirst button when probing a list. Is it my
> programs or is this a general thing.
If your list is empty, you get a crash when you do getFirst. Try this
if ( [list getCount] > 0 ) anObject = [list getFirst];
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.