• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finding methods you don't know exist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Finding methods you don't know exist
      • From: Rob Rix <email@hidden>
References: 
 >Re: Finding methods you don't know exist (From: Rob Rix <email@hidden>)

  • Prev by Date: Re: Just starting out..... Please help
  • Next by Date: Re: Finding methods you don't know exist
  • Previous by thread: Re: Finding methods you don't know exist
  • Next by thread: Re: Finding methods you don't know exist
  • Index(es):
    • Date
    • Thread