ftp.nice.ch/Attic/openStep/implementation/gnustep/sources/objcX-0.87.tgz#/objcX-0.87/nib-translator/XmMenu.m

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

/*  Archiving Category for Menu
 *  Copyright (C)  1993, 1994, 1995  The Board of Trustees of
 *  The Leland Stanford Junior University.  All Rights Reserved.
 *
 *  Authors: Paul Kunz and Imran Qureshi
 *
 * This file is part of the nib translator for 
 * an Objective-C class library for a Window system
 *
 * XmMenu.m,v 1.7 1995/07/03 18:15:33 pfkeb Exp
 *
 */

#include "/NextDeveloper/Headers/objc/typedstream.h"
#include "/NextDeveloper/Headers/objc/Object.h"

#define NXTypedStream TypedStream
#include <objc/typedstream.h>
#include <appkit/Menu.h>


@interface Menu (XmArchiving)
- write:(TypedStream *)stream;
@end

@implementation Menu (XmArchiving)

- write:(TypedStream *)stream
{
 /*
  * Since under objcX we'll not use the Window of the menu, the buck stops
  * here for archiving, i.e. no [super write:stream]; 
  */
#ifdef DEBUG
    printf("\nWriting Menu");
#endif

    objc_write_object(stream, matrix);
    return self;
}

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