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

Re: duplicating views


  • Subject: Re: duplicating views
  • From: Graham Cox <email@hidden>
  • Date: Sat, 14 Jun 2008 15:33:16 +1000


On 14 Jun 2008, at 11:10 am, Graham Cox wrote:

However, I'm not relying on the view having outlets to its subviews set - in fact I don't have any outlets. Instead I embed the controls normally and find them later using their tags. This works well in my case because I'm not using the tags otherwise. Could something like that work for you? You could have a post-processing step that iterated over the subviews/controls and set the outlets.


I've just thought of another solution that might be cleaner and more obvious.

If your substrate view (the one that contains the rest of the controls) is a custom view class, you need only implement the NSCoding protocol and conditionally encode the outlets yourself. Then when the view is copied by the archiving process, the outlets will be correctly dearchived as well.

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: duplicating views
      • From: Torsten Curdt <email@hidden>
References: 
 >duplicating views (From: Torsten Curdt <email@hidden>)
 >Re: duplicating views (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: duplicating views
  • Next by Date: Re: xml parsing
  • Previous by thread: Re: duplicating views
  • Next by thread: Re: duplicating views
  • Index(es):
    • Date
    • Thread