mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 10:50:47 +00:00
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:
parent
d7426f2aac
commit
d8d13297cb
6 changed files with 397 additions and 368 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue