• 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
Re: Custom view instantiated twice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom view instantiated twice?


  • Subject: Re: Custom view instantiated twice?
  • From: Andy Lee <email@hidden>
  • Date: Fri, 22 Aug 2008 20:00:45 -0400

On Aug 22, 2008, at 7:49 PM, Nick Pilch wrote:
I have an NSView subclass defined in IB. It's a custom object in my nib and it's a child of a window's content view.

You answered your own question. The custom object is a separate instance from the one you created within your window. You could create ten different custom objects and they would be different instances. You only need the one that's in your window.


--Andy

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Custom view instantiated twice? (From: Nick Pilch <email@hidden>)

  • Prev by Date: Custom view instantiated twice?
  • Next by Date: Re: NSMenuItem - setHidden
  • Previous by thread: Custom view instantiated twice?
  • Next by thread: Incorrect instance of custom view loading after unarchiving
  • Index(es):
    • Date
    • Thread