File:  [NeXTSTEP 3.3 examples] / Examples / EnterpriseObjects / QueryByExample / QBEPalette / QBEPalette.m
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:41 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

/* QBEPalette.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.
 *
 * Written by Craig Federighi
 *  
 *
 * Example of a QBE palette: This palette uses the libQBE.a built with the QBE
 * folder files. It is capable of both setting the sort order and applying
 * a simple QBE interface to the current UI.
 */

#import "QBEPalette.h"
#import "QBE.h"
#import "SortOrderSetter.h"

@implementation QBEPalette

- finishInstantiate 
{
    [self associateObject:QBEInstance type:IBObjectPboardType with:QBERep];
    [self associateObject:SOInstance type:IBObjectPboardType with:SORep];
    return self;
}

@end


@implementation QBE(_IBSupport)

/* For IB */
-(NXImage *)getIBImage
{
	return [NXImage findImageNamed:"QBE"];
}

@end

@implementation SortOrderSetter(_IBSupport)

/* For IB */
-(NXImage *)getIBImage
{
	return [NXImage findImageNamed:"SortOrderSetter"];
}

@end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.