• 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: Coding style question from ObjC newbie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Coding style question from ObjC newbie


  • Subject: RE: Coding style question from ObjC newbie
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Fri, 1 Nov 2002 09:43:35 -0500

> >- (unsigned int)replaceOccurrencesOfString:(NSString *)target
> >withString:(NSString *)replacement options:(unsigned)opts
> >range:(NSRange)searchRange
>
> That's nice, but I want to be able to do this on an
> NSMutableAttributedString, which doesn't seem to implement this
> method.
> -mike

Every mutable attributed string has a mutable string, accessible through
[MyMAString mutableString]. You should be able to make the mutable string
perform the selector above. I'm not sure what that will do to the
attributes, though.

Jonathan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Coding style question from ObjC newbie (From: Michael Norris <email@hidden>)

  • Prev by Date: Re: changing colors in NSTableView
  • Next by Date: Getting File Types To Show in "saveTo"
  • Previous by thread: Re: Coding style question from ObjC newbie
  • Next by thread: Re: metallized interface
  • Index(es):
    • Date
    • Thread