mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 15:12:21 +00:00
working on support for expanding custom fields
This commit is contained in:
@@ -28,6 +28,22 @@
|
|||||||
|
|
||||||
@implementation MPCustomFieldTableViewDelegate
|
@implementation MPCustomFieldTableViewDelegate
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
- (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row {
|
||||||
|
static NSTextFieldCell *cell;
|
||||||
|
static dispatch_once_t onceToken;
|
||||||
|
dispatch_once(&onceToken, ^{
|
||||||
|
cell = [[NSTextFieldCell alloc] init];
|
||||||
|
});
|
||||||
|
|
||||||
|
cell.stringValue = @"Mutli!";
|
||||||
|
NSTableColumn *column = tableView.tableColumns.firstObject;
|
||||||
|
NSRect frame = NSMakeRect(0, 0, column.width, CGFLOAT_MAX);
|
||||||
|
return [cell cellSizeForBounds:frame].height + 38;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
|
- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
|
||||||
MPCustomFieldTableCellView *view = [tableView makeViewWithIdentifier:@"SelectedCell" owner:tableView];
|
MPCustomFieldTableCellView *view = [tableView makeViewWithIdentifier:@"SelectedCell" owner:tableView];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user