Re: Providing replicable views in IB

2008-10-15 Thread Michael Ash
On Wed, Oct 15, 2008 at 9:05 AM, Matteo Manferdini [EMAIL PROTECTED] wrote: Thank you very much! I did not think about the crappy way becase it *is* an unnatural way of doing things. By the way, how do you know NSCollectionView does it that way? Where do you collect such detailed informations?

Re: Providing replicable views in IB

2008-10-15 Thread Matteo Manferdini
Thank you very much! I did not think about the crappy way becase it *is* an unnatural way of doing things. By the way, how do you know NSCollectionView does it that way? Where do you collect such detailed informations? I did not know the second one. Thank you. Cheers. On Tue, Oct 14, 2008 at 5:56

Re: Providing replicable views in IB

2008-10-14 Thread Michael Ash
On Tue, Oct 14, 2008 at 11:38 AM, Matteo Manferdini [EMAIL PROTECTED] wrote: Hi all, I was trying to find a way to design a replicable view in IB. The behaviour I'm trying to replicate is the one of NSCollectionView: it gets a custom view designed in IB as the prototype view and then

Re: Providing replicable views in IB

2008-10-14 Thread Ashley Clark
You can implement copying of a view by archiving and immediately unarchiving the root view. Something like this (written on the phone, don't expect this to parse correctly immediately): -(id)copyWithZone:(NSZone *)zone { return [NSKeyedUnarchiver unarchiveObjectWithData:

Providing replicable views in IB

2008-10-14 Thread Matteo Manferdini
Hi all, I was trying to find a way to design a replicable view in IB. The behaviour I'm trying to replicate is the one of NSCollectionView: it gets a custom view designed in IB as the prototype view and then replicates it to display its contents. Is there an easy way to do this? Since NSView does