• 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: NSString category question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString category question


  • Subject: Re: NSString category question
  • From: Koen van der Drift <email@hidden>
  • Date: Thu, 6 Mar 2003 09:12:59 -0500

Maybe I misunderstand something about categories, or is the way it is
supposed to work?

That's how it is supposed to work.

Looking at your implementation for removeWhiteSpace, nowhere do you actually change the receiver (i.e. myString, or 'self' if referenced inside removeWhiteSpace). And even if you had, it would be an error; NSStrings are non-mutable. That is, once created they don't change.


Thanks everyone for responding - I now understand what I did wrong.


- Koen.
_______________________________________________
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: NSString category question (From: m <email@hidden>)

  • Prev by Date: How to get the current classic Sytem folder path?
  • Next by Date: gpg and cocoa
  • Previous by thread: Re: NSString category question
  • Next by thread: NSMovieView Big Problem!
  • Index(es):
    • Date
    • Thread