Repository URL to install this package:
|
Version:
3.2.0 ▾
|
{ Parsed from Foundation.framework NSUndoManager.h }
{$ifdef TYPES}
type
NSUndoManagerPtr = ^NSUndoManager;
{$endif}
{$ifdef TYPES}
const
NSUndoCloseGroupingRunLoopOrdering = 350000;
{$endif}
{$ifdef CLASSES}
type
NSUndoManager = objcclass external (NSObject)
private
_undoStack: id;
_redoStack: id;
_runLoopModes: NSArray;
_NSUndoManagerPrivate1: cuint64;
_target: id;
_proxy: id;
_NSUndoManagerPrivate2: pointer;
_NSUndoManagerPrivate3: pointer;
public
procedure beginUndoGrouping; message 'beginUndoGrouping';
procedure endUndoGrouping; message 'endUndoGrouping';
function groupingLevel: NSInteger; message 'groupingLevel';
procedure disableUndoRegistration; message 'disableUndoRegistration';
procedure enableUndoRegistration; message 'enableUndoRegistration';
function isUndoRegistrationEnabled: ObjCBOOL; message 'isUndoRegistrationEnabled';
procedure setGroupsByEvent(newValue: ObjCBOOL); message 'setGroupsByEvent:';
function groupsByEvent: ObjCBOOL; message 'groupsByEvent';
procedure setLevelsOfUndo(newValue: NSUInteger); message 'setLevelsOfUndo:';
function levelsOfUndo: NSUInteger; message 'levelsOfUndo';
procedure setRunLoopModes(newValue: NSArray); message 'setRunLoopModes:';
function runLoopModes: NSArray; message 'runLoopModes';
procedure undo; message 'undo';
procedure redo; message 'redo';
procedure undoNestedGroup; message 'undoNestedGroup';
function canUndo: ObjCBOOL; message 'canUndo';
function canRedo: ObjCBOOL; message 'canRedo';
function isUndoing: ObjCBOOL; message 'isUndoing';
function isRedoing: ObjCBOOL; message 'isRedoing';
procedure removeAllActions; message 'removeAllActions';
procedure removeAllActionsWithTarget (target: id); message 'removeAllActionsWithTarget:';
procedure registerUndoWithTarget_selector_object (target: id; selector: SEL; anObject: id); message 'registerUndoWithTarget:selector:object:';
function prepareWithInvocationTarget (target: id): id; message 'prepareWithInvocationTarget:';
procedure setActionIsDiscardable (discardable: ObjCBOOL); message 'setActionIsDiscardable:'; { available in 10_7, 5_0 }
function undoActionIsDiscardable: ObjCBOOL; message 'undoActionIsDiscardable';
function redoActionIsDiscardable: ObjCBOOL; message 'redoActionIsDiscardable';
function undoActionName: NSString; message 'undoActionName';
function redoActionName: NSString; message 'redoActionName';
procedure setActionName (actionName: NSString); message 'setActionName:';
function undoMenuItemTitle: NSString; message 'undoMenuItemTitle';
function redoMenuItemTitle: NSString; message 'redoMenuItemTitle';
function undoMenuTitleForUndoActionName (actionName: NSString): NSString; message 'undoMenuTitleForUndoActionName:';
function redoMenuTitleForUndoActionName (actionName: NSString): NSString; message 'redoMenuTitleForUndoActionName:';
end;
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
var
NSUndoManagerCheckpointNotification: NSString { available in 10_0, 3_0 }; cvar; external;
NSUndoManagerWillUndoChangeNotification: NSString { available in 10_0, 3_0 }; cvar; external;
NSUndoManagerWillRedoChangeNotification: NSString { available in 10_0, 3_0 }; cvar; external;
NSUndoManagerDidUndoChangeNotification: NSString { available in 10_0, 3_0 }; cvar; external;
NSUndoManagerDidRedoChangeNotification: NSString { available in 10_0, 3_0 }; cvar; external;
NSUndoManagerDidOpenUndoGroupNotification: NSString { available in 10_0, 3_0 }; cvar; external;
NSUndoManagerWillCloseUndoGroupNotification: NSString { available in 10_0, 3_0 }; cvar; external;
NSUndoManagerDidCloseUndoGroupNotification: NSString { available in 10_7, 5_0 }; cvar; external;
{$endif}