* Source/NSCollectionViewItem.m: Fix reference counting in

-copyWithZone:. Remove method -view again.
        * Source/NSArrayController.m: Fix reference counting in
        -newItemForRepresentedObject. Protect -_resetItemSize from
        missing prototype view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38392 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2015-03-10 23:02:09 +00:00
parent a5ab319d72
commit 5023fba764
3 changed files with 12 additions and 10 deletions

View file

@ -101,13 +101,6 @@
ASSIGN(imageView, anImageView);
}
- (NSView *) view
{
// FIXME
[[self textField] setStringValue: [self representedObject]];
return [self textField];
}
- (id) initWithCoder: (NSCoder *)aCoder
{
self = [super initWithCoder: aCoder];
@ -161,7 +154,7 @@
NSData *itemAsData = [NSKeyedArchiver archivedDataWithRootObject: self];
NSCollectionViewItem *newItem =
[NSKeyedUnarchiver unarchiveObjectWithData: itemAsData];
return newItem;
return RETAIN(newItem);
}
@end