mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 18:01:06 +00:00
* 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:
parent
a5ab319d72
commit
5023fba764
3 changed files with 12 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue