168- (void) moveHistoryCursorTo:(NSUInteger)newCursor fieldEditor:(NSTextView *)fieldEditor
170 NSString *value =
nil;
171 NSTextStorage *textStorage =
nil;
173 if (_historyCurrSize < newCursor)
184 NSUInteger index = _historyCurrSize - newCursor;
185 value = [
_history objectAtIndex:index];
186 if (_historyCursor == 0) _latest = [[
textStorage string] copy];
194 _historyCursor = newCursor;
void moveHistoryCursorBy:fieldEditor:(NSInteger offset,[fieldEditor] NSTextView *fieldEditor)
NSMutableArray * _history
NSUInteger _historyCurrSize
NSUInteger _historyCursor
void moveHistoryCursorTo:fieldEditor:(NSUInteger newCursor,[fieldEditor] NSTextView *fieldEditor)
NSUInteger _historyMaxSize
IBOutlet NSTextField * textField