Re: case-insensitive strings
Re: case-insensitive strings
- Subject: Re: case-insensitive strings
- From: Ondra Cada <email@hidden>
- Date: Thu, 10 Oct 2002 22:52:19 +0200
On Thursday, October 10, 2002, at 09:21 , Andy Lee wrote:
Also, what if you were to use those two strings as dictionary *keys*
rather than values? I'm not exactly sure what would happen
All hell would break loose ;)
The only reason I didn't write the above as a category method of
NSDictionary (which would be more natural) is that NSDictionary is a
class cluster. If there's some way to add a category to a class cluster,
so much the better, but that's not a can of worms I've ever stuck my
head into.
No sweat -- unless you try to replace existing methods (which can be kinda
wormy indeed), categorying clusters is just as clean and problemless as
with any other class. It Just Works ;)
(And there's no reason it should not: concrete classes have to be
subclasses of the API class by definition, so they also have to inherit
the method(s) from category(-ies) nicely and well.)
And one more remark: it would be quite sad if it did not work, for
actually NSString and NSArray happen to be the most-often categoried
classes of all.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.