Okay, I'm a little bit new to Cocoa but I pretty much have all the interface builder (and corresponding code) down, and I understand targets and outlets and all that. Here's my problem. I have a window with a few tabs (by default, each tab is an NSTabViewItem of the overall NSTabView). I want to make one (or all, or whatever) of the tabs (instances of NSTabViewItem) an outlet of one of my custom classes.
So I added the variable in my code, parsed the .h file into Interface Builder, so that the outlet shows up in my class info...and I know that I should now control-drag from my class instance to the NSTabViewItem to connect the outlet...but I can't figure out how to do it. I can easily drag to the NSTabView itself, but I can't get it to drag to the NSTabView item. I've tried clicking on the tab name so that it's blue with kind of a blurry highlight around it (completely selected, the Inspector window says NSTabViewItem and everything), but even then, when I control-drag from the class instance to it, it thinks I'm dragging to the NSTabView, so it won't let me connect it (I've confirmed that this is what it's thinking, because when I do that and try to connect it to an NSTabView outlet, it works). How can I make this outlet to the tab itself (the NSTabViewItem instance)? There doesn't seem to be any way (like menu-based or something) to connect an outlet other than control-dragging. It always works fine, but not here. Help?
Thanks.
So I added the variable in my code, parsed the .h file into Interface Builder, so that the outlet shows up in my class info...and I know that I should now control-drag from my class instance to the NSTabViewItem to connect the outlet...but I can't figure out how to do it. I can easily drag to the NSTabView itself, but I can't get it to drag to the NSTabView item. I've tried clicking on the tab name so that it's blue with kind of a blurry highlight around it (completely selected, the Inspector window says NSTabViewItem and everything), but even then, when I control-drag from the class instance to it, it thinks I'm dragging to the NSTabView, so it won't let me connect it (I've confirmed that this is what it's thinking, because when I do that and try to connect it to an NSTabView outlet, it works). How can I make this outlet to the tab itself (the NSTabViewItem instance)? There doesn't seem to be any way (like menu-based or something) to connect an outlet other than control-dragging. It always works fine, but not here. Help?
Thanks.