• 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: Eval() ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eval() ?


  • Subject: Re: Eval() ?
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 3 Mar 2006 08:53:50 -0800

On 3/3/06, Thierry Passeron <email@hidden> wrote:

> Anyhow, for my problem, I have already figured out how to deal with it.
> I have a formatted NSString, an NSArray of parameters (with variable
> number of elements).
> And I want to output the result (NSString *) of the combination of
> format and parameters.

Maybe just add a category to NSString that generates what you want and
then iterate over the arrray or use -[NSArray
makeObjectsPerformSelector:], etc. Categories allow you to add "code"
to existing classes.

-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Eval() ? (From: Thierry Passeron <email@hidden>)
 >Re: Eval() ? (From: Andrew Farmer <email@hidden>)
 >Re: Eval() ? (From: Brett Powley <email@hidden>)
 >Re: Eval() ? (From: Andrew Farmer <email@hidden>)
 >Re: Eval() ? (From: "Thierry Passeron" <email@hidden>)

  • Prev by Date: Re: Debugging a crash in bindings [Solved - sort of]
  • Next by Date: Re: using openssl api
  • Previous by thread: Re: Eval() ?
  • Next by thread: Re: Eval() ?
  • Index(es):
    • Date
    • Thread