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

#import "drawundo.h"

@interface SendToBackGraphicsChange(PrivateMethods)

- redoDetails;

@end

@implementation SendToBackGraphicsChange

- (const char *)changeName
{
    return NXLocalStringFromTable("Operations", "Send To Back", NULL, "The operation of sending all the selected graphical entities to the back of (behind) all other graphical entities.");
}

- redoDetails
{
    int count, i;
    id detail, graphic;
    List *allGraphics;

    allGraphics = [graphicView graphics];
    count = [changeDetails count];
    for (i = 0; i < count; i++) {
	detail = [changeDetails objectAt:i];
	graphic = [detail graphic];
        [allGraphics removeObject:graphic];
        [allGraphics addObject:graphic];
    }

    return self;
}

@end

unix.superglobalmegacorp.com

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