Re: Show/Hide columns in NSTableView?
Re: Show/Hide columns in NSTableView?
- Subject: Re: Show/Hide columns in NSTableView?
- From: Andreas Mayer <email@hidden>
- Date: Sat, 29 Jul 2006 01:39:02 +0200
Am 28.07.2006 um 17:43 Uhr schrieb Corbin Dunn:
What private methods are you overriding?
- (void)_readPersistentTableColumns;
- (void)_writePersistentTableColumns;
In case you have any idea how I could avoid this, I'd be happy to
change my code. :)
And beware that your app may break if you override private methods.
I know.
But in this case, the worst thing that could happen is, that the
column configuration is not saved any more.
What if AppKit adds a "hidden/setHidden" property on NSTableColumn?
I can cause compatibility problems, since the framework may start
accidentally calling your method.
Well, I guess that would hide the column - which is all the point,
no? :)
Seriously though. If that functionality was added to NSTableView/
NSTableColumn, I'd just have to update my code. That's not really a
problem for me. But I realize it could be a problem, if there were
many projects that used this code - this is one reason I hadn't made
it public yet.
Hm. I might look into a way to disable my implementation if the
superclass already responds to that selector.
Err... so, let's assume Apple added the functionality to NSTableView
to show/hide certain columns ... do you think -hidden and -setHidden:
would be added to NSTableColumn? :} If I knew that, I could adjust
my code to account for that possibility.
Andreas
_______________________________________________
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