• 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: Abstract objects (Newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Abstract objects (Newbie)


  • Subject: Re: Abstract objects (Newbie)
  • From: Finlay Dobbie <email@hidden>
  • Date: Tue, 5 Feb 2002 19:57:44 +0000

On Tuesday, February 5, 2002, at 07:28 PM, Ali Ozer wrote:

If you want to subclass in order to add additional functionality (say,
for instance, you want to add a method which returns the reversed
version of the string; or find with regular expression), best way to do
is via a category, which adds the functionality to all NSString classes.

Or if you want to do something like NSAttributedString, create another class with an NSString as an instance variable.

-- Finlay
_______________________________________________
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: Abstract objects (Newbie) (From: Ali Ozer <email@hidden>)

  • Prev by Date: Re: Speed of Quartz (was: optimizing compilers)
  • Next by Date: Re: Wrapping Java in ObjC
  • Previous by thread: Re: Abstract objects (Newbie)
  • Next by thread: Re: Can you get a global Window or Application List?
  • Index(es):
    • Date
    • Thread