Re: duplicating views
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