• 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: How to replace occurrences of a pattern with a NSAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to replace occurrences of a pattern with a NSAttributedString


  • Subject: Re: How to replace occurrences of a pattern with a NSAttributedString
  • From: Sandeep Mohan Bhandarkar <email@hidden>
  • Date: Tue, 20 Sep 2011 02:30:10 -0700

Hi Mike,

<<ATTACHMENT>>  is a character sequence..

Thanks,
Sandeep
On Sep 20, 2011, at 2:26 AM, Mike Abdullah wrote:

>
> On 20 Sep 2011, at 10:16, Sandeep Mohan Bhandarkar wrote:
>
>> Hi All,
>>
>>
>> Can anyone tell me how the following can be achieved.  I have a string as given bellow.
>>
>> "This is a simple text with an attachment <<ATTACHMENT>>"
>>
>> I would like to replace the occurrence of the pattern "<<ATTACHMENT>>" with a NSAttributedString (Containing a icon). Can some one please let me know how this could be achieved. I have looked for various approaches such as using NSRange or NSMutableString but am unable to figure our replacing of a string pattern with a NSAttributedString.
>
> The important question here, is <<ATTACHMENT>> an attribute of the string at that point? Or a particular character sequence?
>

_______________________________________________

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: How to replace occurrences of a pattern with a NSAttributedString
      • From: Mike Abdullah <email@hidden>
References: 
 >How to replace occurrences of a pattern with a NSAttributedString (From: Sandeep Mohan Bhandarkar <email@hidden>)
 >Re: How to replace occurrences of a pattern with a NSAttributedString (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Find panel problems
  • Next by Date: Duplicating an edited document in 10.7.1
  • Previous by thread: Re: How to replace occurrences of a pattern with a NSAttributedString
  • Next by thread: Re: How to replace occurrences of a pattern with a NSAttributedString
  • Index(es):
    • Date
    • Thread