Re: NSTableView delegate not getting called
Re: NSTableView delegate not getting called
- Subject: Re: NSTableView delegate not getting called
- From: Chuck Soper <email@hidden>
- Date: Tue, 13 Jul 2004 11:01:26 -0700
At 10:46 AM -0700 7/13/04, David Alter wrote:
On Jul 12, 2004, at 3:32 PM, Chuck Soper wrote:
NSOutlineView delegate methods are not subclassed from NSTableView.
This is why
NSTableView delegate methods are not called in your NSOutlineView delegate.
Chuck
That does not make sense. Why would they do that? What ever the
case. I have done it manually. First I checked to see what the
delegate is by calling [NSTableView delegate]. The delegate appears
to be correct, but I'm going to set it anyway. Then I used the
setDelegate method from NSTableView to set the delegate to the same
delegate that I'm using for the NSOutlineView. My NSTableView
delegate methods still does not get called.
Any ideas?
Thank you for the help
David
If you have an NSOutlineView then its delegate will only receive
NSOutlineView delegate methods. It will not receive NSTableView
delegate methods. We're talking about delegate methods not instance
methods.
Could someone else on the list confirm or dispute what I'm saying?
Thanks,
Chuck
At 2:02 PM -0700 7/12/04, David Alter wrote:
I have a NSOutlineView. I have connected its delegate in IB to a
controller class. The delegate methods for the outline view gets
called just fine. Now NSOutlineView subclasses from NSTableView.
So I would expect that if I where to add the NSTableView delegate
methods to my controller class they would get called as well.
However this is not the case. My NSTableView delegate methods
never get called.
Is there something I'm neglecting to do here? Anyone have any ideas?
thank you for the help
David Alter
_______________________________________________
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.