• 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
Searching text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Searching text


  • Subject: Searching text
  • From: Paul Harvey <email@hidden>
  • Date: Wed, 1 Jun 2005 16:31:39 +0100

Hello

I'm looking for something for NSTextViews (or strings) similar to PHP or other languages, to search and replace matched strings, a la str_replace(search, replace, source).

Ultimately I'd like to perform this with RegEx, but 'standard' string comparison functions would be a great place for me to get started.

I'm assuming I need to use some Cocoa functions for this, as the strings are NSStrings not standard C strings.

Forgive my ignorance, I'm very new to Cocoa, but have bags of enthusiasm! I'm willing to look it all up, if someone can just get me pointing in the right direction. My searches of the documentation has not turned up any results to far...

-- 

Paul Harvey


Lead Programmer

email@hidden


Hiddenfield Software

"Creating useful software for Mac OS X"

www.hiddenfield.com



 _______________________________________________
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

  • Follow-Ups:
    • Re: Searching text
      • From: "Mark Munz (DevList)" <email@hidden>
    • Re: Searching text
      • From: Satoshi Matsumoto <email@hidden>
  • Prev by Date: [Moderator] EOT Re: [OT] Codename Mac OS X 10.5
  • Next by Date: Re: Custom cell in NSTableView
  • Previous by thread: Re: Spotlight, Content Indexing, and SearchKit integration questions
  • Next by thread: Re: Searching text
  • Index(es):
    • Date
    • Thread