On Thu, Jul 17, 2008 at 12:42 PM, Trygve Inda <[EMAIL PROTECTED]> wrote: > Can a single class have an IBOutlet that goes two different (though > functionally identical) places?
Yes, if what you're asking is "can I load a nib once with one object as File's Owner and then again with a different object?" I'd probably create many nibs, in fact, one for each view in the NSTabView. So there would be TabA.nib, TabB.nib, etc. I would then create a nib for the window, let's call it Window.nib, containing an NSTabView with four *empty* tabs, A through D. I'd also create two NSWindowController subclasses, MainWindowController and AuxWindowController. For the main screen, use MainWindowController to load Window.nib with self as file's owner, and then use the new NSViewController to load the contents of each of the tabs. AuxWindowController would be File's Owner for the windows on the other three tabs, but would remove tabs B through D from the tab view, before loading the view for tab A using NSViewController. You can then use the representedObject of each NSViewController instance you create to get back to your application logic. Hope that helps. --Kyle Sluder _______________________________________________ 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 [EMAIL PROTECTED]