mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 23:20:56 +00:00
* 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:
parent
0bdd4d0ae6
commit
830a6ef782
3 changed files with 51 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue