Rework of display* mechanism to use new MacOSX10.4 method.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25291 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-06-26 16:46:50 +00:00
parent d7426f2aac
commit d8d13297cb
6 changed files with 397 additions and 368 deletions

View file

@ -92,13 +92,26 @@
- (NSGraphicsContext*)createContext
{
// FIXME
return nil;
NSMutableDictionary *info;
if (_context)
return _context;
info = [[self printInfo] dictionary];
[info setObject: _path
forKey: @"NSOutputFile"];
[info setObject: NSGraphicsContextPDFFormat
forKey: NSGraphicsContextRepresentationFormatAttributeName];
_context = RETAIN([NSGraphicsContext graphicsContextWithAttributes: info]);
return _context;
}
- (void) _print
{
[_view displayRectIgnoringOpacity: _rect];
[_view displayRectIgnoringOpacity: _rect inContext: [self context]];
}
- (BOOL)deliverResult