• 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: Sharing NSViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sharing NSViews


  • Subject: Re: Sharing NSViews
  • From: Graham Cox <email@hidden>
  • Date: Sat, 9 Aug 2008 11:07:28 +1000


On 9 Aug 2008, at 10:56 am, c. mendoza wrote:

Hey All,

Is it possible to share an NSView across two different panels or windows? I tried adding a view I already had in one of my windows to a floating panel, but that view "disappeared" from its original placement in the window and only showed up in the panel.

Well then, you have your answer.

A view presumably maintains a back reference to its superview, and only has one of these, so if it's added to a new superview it will disappear from the first one.

Why do you think you need to do this anyway? If you have a view class just create a new instance of it.

cheers, Graham
_______________________________________________

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


  • Follow-Ups:
    • Re: Sharing NSViews
      • From: "c. mendoza" <email@hidden>
References: 
 >NSSearchField bindings almost work (From: Dustin Robert Kick <email@hidden>)
 >Sharing NSViews (From: "c. mendoza" <email@hidden>)

  • Prev by Date: Re: Sharing NSViews
  • Next by Date: Re: Challenge 18 in Hillegass Book
  • Previous by thread: Re: Sharing NSViews
  • Next by thread: Re: Sharing NSViews
  • Index(es):
    • Date
    • Thread