mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
ne more static analyser fix, this time in NSImageView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32478 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eb6d527983
commit
fcfa7dafb4
2 changed files with 10 additions and 9 deletions
|
@ -7,6 +7,7 @@
|
|||
* Source/NSDataLink.m: Correct the init methods to return a
|
||||
retained object.
|
||||
* Source/NSAnimation.m: Implement the copy and coding methods.
|
||||
* Source/NSImageView.m (-cut:): Use the correct copy method.
|
||||
Fixed issues spotted by the static code analysis.
|
||||
|
||||
2011-03-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
|
|
@ -180,15 +180,6 @@ static Class imageCellClass;
|
|||
[self setImage: nil];
|
||||
}
|
||||
|
||||
- (void) cut: (id)sender
|
||||
{
|
||||
if (_allowsCutCopyPaste)
|
||||
{
|
||||
[self copy];
|
||||
[self setImage: nil];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) copy: (id)sender
|
||||
{
|
||||
if (_allowsCutCopyPaste)
|
||||
|
@ -208,6 +199,15 @@ static Class imageCellClass;
|
|||
}
|
||||
}
|
||||
|
||||
- (void) cut: (id)sender
|
||||
{
|
||||
if (_allowsCutCopyPaste)
|
||||
{
|
||||
[self copy: sender];
|
||||
[self setImage: nil];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) paste: (id)sender
|
||||
{
|
||||
if (_allowsCutCopyPaste)
|
||||
|
|
Loading…
Reference in a new issue