Copying an NSView?
Copying an NSView?
- Subject: Copying an NSView?
- From: email@hidden
- Date: Fri, 25 Jan 2002 15:49:05 -0800
Hi, I'm new to the list and Cocoa in general, so please excuse me if
this is an obvious question. However, I've looked everywhere and read
everything I can find and I still haven't found an answer, so I'm coming
here as a last resort.
I want to add NSTabViewItems to an NSTabView when a method of my
controller class is called. I've got that part working fine, but when I
set the view of the NSTabViewItem to my custom NSView, all of the
created tabs share any changes made to the others. What I want to do is
create a new instance of my custom NSView and set that copy to the view
of the newly created NSTabViewItem. The problem is that NSView doesn't
conform to NSCopying, so I'm at a bit of a loss as to what to do. Any
suggestions are greatly appreciated.
--
Tom Dale