Re: Building a panel with templated views?
Re: Building a panel with templated views?
- Subject: Re: Building a panel with templated views?
- From: Ken Ferry <email@hidden>
- Date: Thu, 28 Oct 2004 03:19:03 -0400
On Wed, 27 Oct 2004 22:30:06 -0700, Scott Stevenson
<email@hidden> wrote:
>
>
On Oct 27, 2004, at 10:07 PM, Graham Cox wrote:
>
>
> Very interesting, thanks.
>
>
>
> I'm still digesting how it works in detail, but I'm not entirely
>
> convinced that a table view is the way to do it - actually it hadn't
>
> even occurred to me. It also seems to use a tabless tab view to
>
> actually switch views, which might be a lot of overhead (since it will
>
> load all possible views, even if most of them are never shown). But
>
> that said it's definitely an interesting approach, one I'll give
>
> serious thought to.
Even if you decide you don't need the tableview/tabview, Joar's code
still points out a good answer to the original question.
Put a view arrangement that you wish to clone into a nib, then
instantiate the nib multiple times.
-Ken
(original question)
>
So I created each line of items as children of a custom view in IB. The
>
question I have is how to take those and make instances as needed at
>
run time. I can easily get one instance of each type, but it's unclear
>
how to make clones - I need the custom view object from IB to act as a
>
template for numerous future instances rather than an actual instance.
>
>
Any ideas on how to do this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden