mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
One issue with the view-based version is that there seems to be no hook where we can update the text prior to edit, so in the SCM Status view where item names are disambiguated, editing the item will cause the disambiguated name to be used as basename. The view-based version is also more eager to start editing rows, for example the “click a selected item to move focus to file browser” now also trigger renaming of that item, which is rather undesirable. A few other pending issues also remain, like better rendering of labels, not adding a (hidden) close button to each row, and ensuring FSItem instances are re-used when possible (e.g. SCM data source). The way we mark items as modified or open is also suboptimal, as it’s partly done via bindings and partly manual.
18 lines
558 B
Objective-C
18 lines
558 B
Objective-C
@class OFBOutlineView;
|
|
@class FSDataSource;
|
|
|
|
@interface FSOutlineViewDelegate : NSObject
|
|
@property (nonatomic) OFBOutlineView* outlineView;
|
|
@property (nonatomic) FSDataSource* dataSource;
|
|
@property (nonatomic) NSArray* openURLs;
|
|
@property (nonatomic) NSArray* modifiedURLs;
|
|
|
|
@property (nonatomic) SEL openItemSelector;
|
|
@property (nonatomic) SEL closeItemSelector;
|
|
@property (nonatomic, weak) id target;
|
|
|
|
- (void)selectURLs:(NSArray*)someURLs expandChildren:(BOOL)expandAncestors;
|
|
- (void)editURL:(NSURL*)anURL;
|
|
- (void)scrollToOffset:(CGFloat)anOffset;
|
|
@end
|