Skip navigation.
 
mlRe: Show/Hide columns in NSTableView?
FROM : Corbin Dunn
DATE : Fri Jul 28 17:43:11 2006

>
> It involves subclassing NSTableView *and* NSTableColumn and it uses 
> two private methods of NSTableView - since I couldn't get autosaving 
> to work properly without them.


What private methods are you overriding? I'm curious to know for 
compatibility  reasons. And beware that your app may break if you 
override private methods.

>
> @interface AMRemovableTableColumn : NSTableColumn {
>     IBOutlet AMRemovableColumnsTableView *mainTableView;
> }
>
>
> - (BOOL)hidden;
> - (void)setHidden:(BOOL)flag;
>


I would be vary careful when you introduce generic names like this in 
a subclass of an AppKit class, especially if it is likely that AppKit 
may introduce a method with the same name at a later date. What if 
AppKit adds a "hidden/setHidden" property on NSTableColumn? I can 
cause compatibility problems, since the framework may start 
accidentally calling your method. This is just something to be aware of.


-corbin

Related mailsAuthorDate
mlShow/Hide columns in NSTableView? Fredrik Olsson Jul 27, 10:37
mlRe: Show/Hide columns in NSTableView? Matt Neuburg Jul 27, 17:20
mlRe: Show/Hide columns in NSTableView? Cameron Hayne Jul 27, 18:43
mlRe: Show/Hide columns in NSTableView? Daniel Jalkut Jul 27, 22:07
mlRe: Show/Hide columns in NSTableView? Andreas Mayer Jul 27, 23:17
mlRe: Show/Hide columns in NSTableView? Fredrik Olsson Jul 28, 08:15
mlRe: Show/Hide columns in NSTableView? Corbin Dunn Jul 28, 17:43
mlRe: Show/Hide columns in NSTableView? Andreas Mayer Jul 29, 01:39
mlRe: Show/Hide columns in NSTableView? Corbin Dunn Jul 29, 03:01