[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RTFM question
From: |
Rick Riolo |
Subject: |
Re: RTFM question |
Date: |
Wed, 24 Jan 2001 07:31:41 -0500 (EST) |
yes, you can do it. look in the
(online or offline) objectiveC manual.
(i'd tell you how but i can't recall the method name off hand.)
- r
Rick Riolo address@hidden
Center for Study of Complex Systems (CSCS)
4477 Randall Lab
University of Michigan Ann Arbor MI 48109-1120
Phone: 734 763 3323 Fax: 734 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html
On Wed, 24 Jan 2001, Ken Gosier wrote:
> Date: Wed, 24 Jan 2001 04:23:20 -0800 (PST)
> From: Ken Gosier <address@hidden>
> Reply-To: address@hidden
> To: address@hidden
> Subject: RTFM question
>
> Please pardon the question. I know this is in the docs
> somewhere, but not exactly where:
>
> Is there a way to ask an object in Obj-C what type of
> object it is? Specifically, I have 2 subclasses of an Agent
> class in a stock market model: Investor and Speculator. I
> keep both types in a List agentList. Is there a way, while
> iterating through agentList, to ask the current Agent if
> it's a Speculator or Investor?
>
> TIA, and sorry for the RTFM question. I can read up myself,
> if I get a pointer to the right place to look--
>
>
> =====
> Ken Gosier
> address@hidden
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
> ==================================
> 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.
>
>
==================================
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.