This is CustomMenuPalette.m in view mode; [Download] [Up]
//
// Source file : CustomMenuPalette.m
// Created by : gideon@berd
// Created on : Fri Sep 8 09:36:15 NZST 1995
// RCS File : $Source: /Ramoth/Black.Albatross/CVS/CustomMenu/CustomMenuPalette.m,v $
// Last modified : $Date: 1995/09/10 22:38:01 $
// Last modified by : $Author: gideon $
// Current Revision : $Revision: 1.1.1.1 $
//
static const char RCSId[] = "$Id: CustomMenuPalette.m,v 1.1.1.1 1995/09/10 22:38:01 gideon Exp $";
#import "CustomMenuPalette.h"
#import "CustomMenu.subproj/DraggableMenu.h"
@implementation CustomMenuPalette
- (const char *)version
{
return RCSId;
}
- finishInstantiate
{
id idBundle;
id idImage;
char buf[MAXPATHLEN + 1];
draggableMenuObject = [[DraggableMenu alloc] init];
[self associateObject:draggableMenuObject
type:IBObjectPboardType with:customMenuButton];
idBundle = [NXBundle bundleForClass:[self class]];
[idBundle getPath:buf forResource:"CustomMenu" ofType:"tiff"];
idImage = [[NXImage alloc] initFromFile:buf];
[customMenuButton setImage:idImage];
[super finishInstantiate];
return self;
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.