Re: Abstract objects (Newbie)
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.