NSTabViewDelegate
NSTabViewDelegate
- Subject: NSTabViewDelegate
- From: Paul Forgey <email@hidden>
- Date: Thu, 21 Jan 2010 16:18:42 -0800
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