Re: NSTabViewDelegate
Re: NSTabViewDelegate
- Subject: Re: NSTabViewDelegate
- From: Scott Anguish <email@hidden>
- Date: Thu, 21 Jan 2010 22:39:05 -0500
are you telling it to load the table using reload?
On Jan 21, 2010, at 7:18 PM, Paul Forgey wrote:
> Are there any known conditions under which an NSTabView won't call its delegate methods?
>
> I can confirm in awakeFromNib the tab view's delegate is properly set to self (as per the outlet set in Interface Builder).
>
> Yet, none of the tab view delegate methods are ever being called in my class.
>
> - (void)awakeFromNib
> {
> NSLog (@"awoke from nib. tab view delegate=%p, self=%p", [tabView delegate], self);
> }
>
> - (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem
> {
> NSLog (@"didSelectTabViewItem");
> [selectedTabLabel setStringValue:[tabViewItem label]];
> }
>
> - (BOOL)tabView:(NSTabView *)tabView shouldSelectTabViewItem:(NSTabViewItem *)tabViewItem
> {
> NSLog (@"shouldSelectTabViewItem");
> return YES;
> }
>
> - (void)tabView:(NSTabView *)tabView willSelectTabViewItem:(NSTabViewItem *)tabViewItem
> {
> NSLog (@"willSelectTabViewItem");
> }
>
> - (void)tabViewDidChangeNumberOfTabViewItems:(NSTabView *)tabView
> {
> NSLog (@"tabViewDidChangeNumberOfTabViewItems");
> }
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden