• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Copying an NSView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Copying an NSView?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: How viable is Cocoa development?
  • Next by Date: Re: How viable is Cocoa development?
  • Previous by thread: Re: 'small' attribute of NSPopUpButton
  • Next by thread: Re: Copying an NSView?
  • Index(es):
    • Date
    • Thread