Re: Controller introspection API
Re: Controller introspection API
- Subject: Re: Controller introspection API
- From: "Jonathan 'Wolf' Rentzsch" <email@hidden>
- Date: Mon, 1 Mar 2004 08:16:43 -0600
Scott Anguish, email@hidden, wrote:
>
On Mar 1, 2004, at 2:17 AM, Allan Odgaard wrote:
>
>
> On 1. Mar 2004, at 6:33, Jonathan 'Wolf' Rentzsch wrote:
>
>
>
>> I have a subclass of NSTableView (don't we all). Is there a public
>
>> interface to access the "content" controller binding set in Interface
>
>> Builder?
>
>>
>
>> If not, why not?
>
>
>
> No there is not, because the object being observed should *not* have
>
> intimate knowledge of its observers.
>
>
>
>
I don't think that's what he was asking.
Yes.
>
The NSTableView subclass may have a legitimate need to determine what
>
the content binding is, maybe to send a message to it. This isn't
>
crossing any encapsulation bounds.
Agreed.
>
What then was he asking? Maybe the OP could clarify? or state what he
>
wants to accomplish.
So long as I'm subclassing, I'd like to make the NSTableView
controller-aware for the purposes of:
* Deleting a row via the delete key and
* Drag and Drop
I have my own nonstandard methods of pulling this off, just like everyone
else does. I saw this as in opportunity to standardize the subclass and
reduce the class count in one go. Unfortunately, apparently there is
currently no public API for getting a NSTableView's content binding. I
was just hoping I was missing something terribly obvious. Apparently not.
So, I continue to use mmalc's DNDArrayController-based code and shake my
fists at the sky. Thanks for your help.
| Jonathan 'Wolf' Rentzsch
http://rentzsch.com
| Red Shed Software
http://redshed.net
| "better" necessarily means "different"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.