SEL's
SEL's
- Subject: SEL's
- From: Robert S Goldsmith <email@hidden>
- Date: Mon, 24 Sep 2001 16:55:24 +0100
Hi :)
on a similar note to the NSRect array problem, I have an
array of Selectors that needs to be configured once at the
start of the program but not changed after that. It also
needs to be available to every instance of a class.
Currently, I have a statically defined pointer defined in
the same source file as the class (so the class instances
can all access it) and then the first instance of the class
to be created takes on the role of creating and maintaining
a normal C array. This works atm but that is only because i
can be sure that when this instance is destroyed, all
instances are destroyed. This will not always be the case.
Can someone suggest a better way?
thanks
Robert
- Follow-Ups:
- Re: SEL's
- From: Andreas Monitzer <email@hidden>