Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tab View Delegate



Hello...

First, you need to make sure that you have made a connection between the object which implements the delegate method and the tabview in Interface Builder.

If the delegate outlet of the NSTabView is not connected to your instance of the Control class (the object where you have this method implemented) the method will not be called.


Hope that helps,

Louis


Dear List,

I am having problems getting a tab view delegate to work ( at this point I am not so sure that it is even a delegate I need to use). The problem is that I have a tab view in a window. Each of the panels on the view has some stuff that I need to clear whenever a I change tabs ( its a few text fields that I need to reset). I thought at first that I just need to use the -(void) tabView: (NSTabView *)tabview didSelectTabViewItem:(NSTabviewItem *)tabViewItem. But 1- I could not get this to work, 2- I don't even think it is what I want.

Below is the code that I have, The delegate for startup works but not for switching tabs. Thanks for the help!

...
_______________________________________________
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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.