• 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
lots of find/replace in text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lots of find/replace in text file


  • Subject: lots of find/replace in text file
  • From: Jeremy Matthews <email@hidden>
  • Date: Sat, 22 Jan 2011 09:19:50 -0500

So...the app I previously mentioned, ala Mad Libs...I now have lots more text to replace within the file (new additions). Besides using find/replace using NSScanner and NSStrings' stringByReplacingOccurrencesOfString....is there a better way, to perform a slew of find/place operations with a text file?

So far, I have an array of strings (placeholders) which get replaced by an array of user-determined values, and the resulting mishmash gets spewed into a file.

I can't help but think there might be a better (and more efficient way) of handling this?

Thanks,
j

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: lots of find/replace in text file
      • From: "Gary L. Wade" <email@hidden>
  • Prev by Date: Re: Undo in conjunction with core data
  • Next by Date: Re: Tiling, applying it in my app.
  • Previous by thread: Re: how to change NSButton color
  • Next by thread: Re: lots of find/replace in text file
  • Index(es):
    • Date
    • Thread