* Source/NSCollectionView.m (-newItemForRepresentedObject:):

Don't autorelease the returned object as this method starts with
        "new".
        * Source/NSCollectionViewItem.m (-copyWithZone:): Add call to
        new method to copy over the bindings from the old view hierarchy to
        the new.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38405 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2015-03-12 22:13:42 +00:00
parent 0bdd4d0ae6
commit 830a6ef782
3 changed files with 51 additions and 1 deletions

View file

@ -474,6 +474,7 @@ static NSString *placeholderItem = nil;
[item setSelected: YES];
}
[self addSubview: [item view]];
RELEASE(item);
}
return item;
}
@ -486,7 +487,7 @@ static NSString *placeholderItem = nil;
collectionItem = [itemPrototype copy];
[collectionItem setRepresentedObject: object];
}
return AUTORELEASE (collectionItem);
return collectionItem;
}
- (void) _removeItemsViews