This is InfoView.m in view mode; [Download] [Up]
/* indent:4 tabsize:8 font:fixed-width */
#import "InfoView.h"
@implementation InfoView
static id _infoImage;
+ initialize
{
if (self == [InfoView class])
{
_infoImage = [NXImage findImageNamed:"Info"];
}
[super initialize];
return self;
}
- mouseDown:(NXEvent *)theEvent
{
if ((theEvent->flags & NX_SHIFTMASK) &&
(theEvent->flags & NX_ALTERNATEMASK))
{
showBackground = YES;
[self display];
}
else
{
showBackground = NO;
[self display];
}
return self;
}
- drawSelf:(const NXRect *)aRect: (int)rectCount
{
if (showBackground == YES)
{
int i;
for (i=1; i<=20; i++)
{
[_infoImage dissolve:((float)i/30.0) fromRect:aRect
toPoint:&(aRect->origin)];
[infoPanel flushWindow];
}
[_infoImage dissolve:1.0 fromRect:aRect toPoint:&(aRect->origin)];
return self;
}
return self;
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.