mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
73453c90f0
commit
cfa8831721
2 changed files with 13 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue