From 44331c0d0922b1e05b2c26240d721ebc4c8449bc Mon Sep 17 00:00:00 2001 From: MatRush Date: Tue, 9 Dec 2025 14:03:20 -0800 Subject: [PATCH 1/2] Add copy support to description cell in FLEXObjectExplorerViewController Right now the description cell in `FLEXObjectExplorerViewController` uses `FLEXSingleRowSection`, which doesn't have the copy support. Thus long press copying is not an option there. The other cells are using `FLEXMetadataSection` which has good support. This change is going to add a basic "Copy Text" menu action for single row section. --- Classes/Core/FLEXSingleRowSection.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Classes/Core/FLEXSingleRowSection.m b/Classes/Core/FLEXSingleRowSection.m index dc69946ce0..92416ae56d 100644 --- a/Classes/Core/FLEXSingleRowSection.m +++ b/Classes/Core/FLEXSingleRowSection.m @@ -86,4 +86,12 @@ - (NSString *)subtitleForRow:(NSInteger)row { return self.lastSubitle; } +- (NSArray *)copyMenuItemsForRow:(NSInteger)row { + NSString *text = [self titleForRow:row]; + if (text.length) { + return @[@"Text", text]; + } + return nil; +} + @end From bfc0c101f44b9acf3547ac21d1482ff65b5cf130 Mon Sep 17 00:00:00 2001 From: MatRush Date: Fri, 26 Dec 2025 20:58:47 -0800 Subject: [PATCH 2/2] Use const text Make it a const --- Classes/Core/FLEXSingleRowSection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Core/FLEXSingleRowSection.m b/Classes/Core/FLEXSingleRowSection.m index 92416ae56d..181c492d87 100644 --- a/Classes/Core/FLEXSingleRowSection.m +++ b/Classes/Core/FLEXSingleRowSection.m @@ -87,7 +87,7 @@ - (NSString *)subtitleForRow:(NSInteger)row { } - (NSArray *)copyMenuItemsForRow:(NSInteger)row { - NSString *text = [self titleForRow:row]; + NSString *const text = [self titleForRow:row]; if (text.length) { return @[@"Text", text]; }