Add logic to get the column / row for a given view

This commit is contained in:
Gregory John Casamento 2024-02-19 10:20:00 -05:00
parent 182427bf97
commit 8d9cb6f933
4 changed files with 100 additions and 32 deletions

View file

@ -44,6 +44,7 @@
@class NSText;
@class NSImage;
@class NSURL;
@class NSNib;
typedef enum _NSTableViewDropOperation {
NSTableViewDropOn,
@ -191,6 +192,8 @@ APPKIT_EXPORT_CLASS
/* Supporting ivars for view based tables */
BOOL _viewBased;
NSMapTable *_renderedViewPaths;
NSMapTable *_pathsToViews;
NSMutableDictionary *_registeredNibs;
NSMutableDictionary *_registeredViews;
}
@ -401,6 +404,12 @@ APPKIT_EXPORT_CLASS
- (NSView *) makeViewWithIdentifier: (NSUserInterfaceItemIdentifier)identifier owner:(id)owner;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8, GS_API_LATEST)
- (void) registerNib: (NSNib *)nib
forIdentifier: (NSUserInterfaceItemIdentifier)identifier;
- (NSDictionary *) registeredNibsByIdentifier;
#endif
@end /* interface of NSTableView */
@interface NSTableView (GNUPrivate)