Re: WTF? How can this work?
Re: WTF? How can this work?
- Subject: Re: WTF? How can this work?
- From: Ondra Cada <email@hidden>
- Date: Sun, 19 Aug 2001 18:31:38 +0200
John,
>
>>>>> John Hornkvist (JH) wrote at Sun, 19 Aug 2001 12:34:11 +0200:
JH> In essence, the problem is that Apple has chosen to implement NSArray
JH> and NSMutableArray with the same class. I regard this as a bug.
Whew! That *IS* a bug all right. Perhaps I'm starting to have some idea why
the OS X is that terribly slow and memory-hungry! Especially if they happened
to use this bright idea for other immutable classes as well :(((
Might be also the reason why some of my older code did not work (the ports
were not important enough to pursue the problems): a few times for me the
(im)mutability brought information as well, ie. I had code like
id o=...;
...
if ([o isKindOfClass:[NSMutableArray class]]) { ... code A ... }
else if ([o isKindOfClass:[NSArray class]]) { ... code B ... }
...
Blast it :(((( Somebody might tell me again how Apple _improved_ OpenStep
:((( And there is not a word of this bloomin' thing in the Foundation Kit
release notes, or am I blind?
Incidentally:
>
>>>>> John Hornkvist (JH) wrote at Sun, 19 Aug 2001 12:34:11 +0200:
JH> We had a long discussion on this on email@hidden; search the
JH> list archives on "NEWBIE : class names ?" and "The mutable-immutable
JH> issue".
Seems the search machine does not work quite well. I've tried, but got no
match of the former and exactly one match of the latter. The query I've used
was
"NEWBIE : class names ?" or "The mutable-immutable issue"
You have to search twice -- without 'or' it seems to work well. Or perhaps
the machine does not interpret inverted commas properly: the 'or' is in the
query examples, the inverted commas are not.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc