- (void )drawRect: (NSRect )theRect
{
-
+ (void )theRect;
NSRect aBounds = NSMakeRect (0.0, 0.0, myImage.size.width, myImage.size.height);
[myImage drawInRect: aBounds
//=======================================================================
void Draw_Window::SetMode (const Standard_Integer& theMode)
{
- //
+ // unsupported
+ (void )theMode;
}
//=======================================================================
NSBitmapImageFileType aFileType = (NSBitmapImageFileType )[[aFileTypeDict valueForKey: aFileExtension] intValue];
NSBitmapImageRep* anImageRep = [NSBitmapImageRep imageRepWithData: [myImageBuffer TIFFRepresentation]];
+ NSDictionary* anImgProps = [NSDictionary dictionaryWithObject: [NSNumber numberWithFloat: 0.8]
+ forKey: NSImageCompressionFactor];
+
NSData* aData = [anImageRep representationUsingType: aFileType
- properties: nil];
+ properties: anImgProps];
Standard_Boolean isSuccess = [aData writeToFile: aFileName
atomically: NO];
- (void )windowWillClose: (NSNotification* )theNotification
{
+ (void )theNotification;
TCollection_AsciiString aViewId = "";
if (ViewerTest_myViews.IsBound2 (ViewerTest::CurrentView()))
{
// =======================================================================
- (void )drawRect: (NSRect )theDirtyRect
{
+ (void )theDirtyRect;
VT_ProcessExpose();
}
// =======================================================================
- (void )rightMouseUp: (NSEvent* )theEvent
{
+ (void )theEvent;
VT_ProcessButton3Release();
}