swarm-support
[Top][All Lists]
Advanced

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

How to ya add methods to Swarm objects?


From: Steve Emsley
Subject: How to ya add methods to Swarm objects?
Date: Mon, 29 Jun 1998 22:33:50 +0100

I installed the archive Swarm rather than the bin Swarm because I
wanted to add a method to the Histogram object. Although Graph allows
one to fix the Y axis, Histogram does not.

Naively, I added a prototype:

- setYaxisMin: (double)min max: (double)max step: (double)step;

in Histogram.h and the method in Histogram.m. I made it and installed
it. However, when I tried to make my model I got the compiler message:

method `setYaxisMin:max:step:' not implemented by protocol.

So:
1. Where do I add the new method to the list of protocols?
2. Doing 'make install' seems an inefficient way of introducing a new
method into the Swarm libraries. What should I be doing?
3. Am I doing this all wrong anyway?

Suggestions much appreciated,
Steve
-- 
---------------------------------------------------------------------
 Steve Emsley                 Ecosystems Analysis & Management Group
 address@hidden              University of Warwick, England
 http://www.oikos.warwick.ac.uk/~sme/           (+44) (0)1598 753648
---------------------------------------------------------------------

                  ==================================
   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.
                  ==================================


reply via email to

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