osx compatibility tweak.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30140 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-04-13 18:37:09 +00:00
parent 73453c90f0
commit cfa8831721
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2010-04-13 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSArray.m: ([-initWithContentsOfFile:]) added ugly OSX
compatibility hack ... return the mutable array deserialized from
the property list rather than an instance of the same class as
the receiver. The original GNUstep behavior made more sense.
2010-04-13 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSNotificationQueue.m: Fix error traversing queue.

View file

@ -796,7 +796,12 @@ static SEL rlSel;
RELEASE(myString);
if ([result isKindOfClass: NSArrayClass])
{
self = [self initWithArray: result];
//self = [self initWithArray: result];
/* OSX appears to always return a mutable array rather than
* the class of the receiver.
*/
RELEASE(self);
self = RETAIN(result);
}
else
{