This is BringToFrontGraphicsChange.m in view mode; [Download] [Up]
#import "drawundo.h"
@interface BringToFrontGraphicsChange(PrivateMethods)
- redoDetails;
@end
@implementation BringToFrontGraphicsChange
- (const char *)changeName
{
return NXLocalStringFromTable("Operations", "Bring to Front", NULL, "The operation of bringing a graphical entity or group of graphical entities to the front of all other graphical entities.");
}
- redoDetails
{
int count, i;
id detail, graphic;
List *allGraphics;
allGraphics = [graphicView graphics];
count = [changeDetails count];
for (i = count; i >= 0; --i) {
detail = [changeDetails objectAt:i];
graphic = [detail graphic];
[allGraphics removeObject:graphic];
[allGraphics insertObject:graphic at:0];
}
return self;
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.