Re: NSTabViewDelegate

2010-01-22 Thread Jerry Krinock

On 2010 Jan 21, at 16:18, Paul Forgey wrote:

 Are there any known conditions under which an NSTabView won't call its 
 delegate methods?

No.  Both tabView:willSelectTabViewItem: and tabView:didSelectTabViewItem: work 
fine for me, and I don't see anything wrong with the code you posted.  You 
should re-check that delegate connection later in your program run and see if 
maybe something chopped it.___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTabViewDelegate

2010-01-21 Thread Scott Anguish
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 (Cocoa-dev@lists.apple.com)
 
 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:
 http://lists.apple.com/mailman/options/cocoa-dev/scott%40cocoadoc.com
 
 This email sent to sc...@cocoadoc.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTabViewDelegate

2010-01-21 Thread Graham Cox

On 22/01/2010, at 2:39 PM, Scott Anguish wrote:

 are you telling it to load the table using reload?


I think this a tab view, not a table view.

--Graham


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTabViewDelegate

2010-01-21 Thread Scott Anguish
I relooked at the doc, and I don’t see anything here trying to make up for 
my stupidity.

can you post the creation code?

Not helpful, but I don’t think you need to implement any of 
these.___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSTabViewDelegate

2010-01-21 Thread Scott Anguish

On Jan 21, 2010, at 10:46 PM, Graham Cox wrote:

 
 On 22/01/2010, at 2:39 PM, Scott Anguish wrote:
 
 are you telling it to load the table using reload?
 
 
 I think this a tab view, not a table view.
 

Oh, for crying out loud.

I’m an absolute idiot.

Thanks for pointing that out 
Graham.___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com