ftp.nice.ch/Attic/openStep/developer/resources/MiscKit.2.0.5.s.gnutar.gz#/MiscKit2/Tests/FileDragging/Controller.m

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

#import <MiscAppKit/MiscDragView.h>
#import <MiscAppKit/MiscFileDragMatrix.h>
#import "Controller.h"


@implementation Controller

- (void) awakeFromNib
{
    // Stupid thing for an accepting image but I'm just testing.
    [dragView1 setAcceptingImage:[[NSImage imageNamed:@"NSApplicationIcon"] retain]];
    // By default we display titles.
    [dragView2 setDisplaysTitle:NO];

    [dragMatrix renewRows:1 columns:5];
    [dragMatrix sizeToCells];
    [dragMatrix setNeedsDisplay:YES];
}

@end

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