copying views how to but change 1 w/o changing the other?
copying views how to but change 1 w/o changing the other?
- Subject: copying views how to but change 1 w/o changing the other?
- From: "Alan Smith" <email@hidden>
- Date: Fri, 5 May 2006 11:35:15 -0400
I want to replace the ability to make multiple windows with the ability to
add safari-like tabs. I've downloaded John's great tabs and got them working
in a testing app. So I compiled the framework and hooked up a NSView to the
tab controller. That works fine. The part that doesn't do quite what I want
is, I create a new tab and use the view from the current tab and set it as
the new tab's view. The problem is that when you change the view in one tab
the same thing happens in the other. What can I do to avoid this? I want the
views to be independent of the other.
Also, I want the user to be able to make a new tab by using a menu item. The
menu and the tabs are in different nib files. I want the IBAction in the
controller for the tabs. So, in the menu nib I connect the action to the
menu item and in the tab nib I connect the tabs to their outlets in the same
class that the menu item is connected to. When I build and run the app,
watching through the debugger, the menu action executes but the tabs aren't
inited. The IBOutlet is empty and appears unconnected. How do I fix this? In
John's demo app the First Responder has the actions in them. In fact, it has
all the actions that are in his controller class in it. Since he is
obviously a better programmer than me, I would like to follow his example
but don't know how. How do I make the First Responder of the MainMenu
contain actions from my controller class?
Thanks a million, Alan
--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden