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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
