ftp.nice.ch/pub/next/tools/dock/Fiend.1.0.s.tar.gz#/Fiend/BackWindow.m

This is BackWindow.m in view mode; [Download] [Up]

//  BackWindow.m
//
//  You may freely copy, distribute, and reuse the code in this example.
//  NeXT disclaims any warranty of any kind, expressed or  implied, as to its
//  fitness for any particular use.

#import "BackWindow.h"
#import "SpaceView.h"

#import <appkit/appkit.h>

// This class supplies a borderless window as big as the screen.  It
// makes an assumption that all screens are the same size as the main
// screen, which I don't like, so we'll just have to see if it still
// works if and when we get a bunch of screens of different sizes.
// (minor Yuck) -sam

@implementation BackWindow

+ getFrameRect:(NXRect *)fRect forContentRect:(const NXRect *)cRect
	 style:(int)aStyle
{
  fRect->origin.x=fRect->origin.y=0;
  [NXApp getScreenSize:&(fRect->size)];
  return self;
}

+ getContentRect:(NXRect *)cRect forFrameRect:(const NXRect *)fRect
	   style:(int)aStyle
{
  cRect->origin.x=cRect->origin.y=0;
  [NXApp getScreenSize:&(cRect->size)];
  return self;
}

+ (NXCoord)minFrameWidth:(const char *)aTitle forStyle:(int)aStyle
	      buttonMask:(int)aMask;
{
  NXSize s;
  [NXApp getScreenSize:&s];
  return s.width;
}


@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.