Lock and unlock focus

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3957 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-03-22 13:23:53 +00:00
parent c0f076af8e
commit ad764f5da2
2 changed files with 6 additions and 2 deletions

View file

@ -1032,12 +1032,12 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
- (void) lockFocus
{
[self subclassResponsibility: _cmd];
[[NSGraphicsContext currentContext] lockFocusView: self];
}
- (void) unlockFocus
{
[self subclassResponsibility: _cmd];
[[NSGraphicsContext currentContext] unlockFocusView: self];
}
- (BOOL) canDraw