Re: Show/Hide columns in NSTableView?
Re: Show/Hide columns in NSTableView?
- Subject: Re: Show/Hide columns in NSTableView?
- From: Corbin Dunn <email@hidden>
- Date: Fri, 28 Jul 2006 08:43:11 -0700
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden