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
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 mails | Author | Date |
|---|---|---|
| Fredrik Olsson | Jul 27, 10:37 | |
| Matt Neuburg | Jul 27, 17:20 | |
| Cameron Hayne | Jul 27, 18:43 | |
| Daniel Jalkut | Jul 27, 22:07 | |
| Andreas Mayer | Jul 27, 23:17 | |
| Fredrik Olsson | Jul 28, 08:15 | |
| Corbin Dunn | Jul 28, 17:43 | |
| Andreas Mayer | Jul 29, 01:39 | |
| Corbin Dunn | Jul 29, 03:01 |






Cocoa mail archive

