Re: Finding methods you don't know exist
Re: Finding methods you don't know exist
- Subject: Re: Finding methods you don't know exist
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 9 Jul 2001 00:09:24 -0700
On Sunday, July 8, 2001, at 11:52 PM, Rob Rix wrote:
Do SEL's have to be wrapped with a class to be stuck in an array?
Yes.
Fortunately, the class already exists. Use NSStringFromSelector() to
convert a selector to a string, put the string in your array, and
NSSelectorFromString() to convert it back.
You can also use NSValue's -valueWithObjcType:, but it's a bit more
cryptic.
-jcr
"Scientology is evil; its techniques are evil; its practice is a serious
threat to the community, medically, morally, and socially; and its
adherents are sadly deluded and often mentally ill... --Justice
Anderson, Supreme Court of Victoria, Australia