Some things turn out to be simple, if you know where to look. I¹m posting
this in case anyone else runs into this issue. Unfortunately, the
Collection View Guide does not mention it. The solution is to subclass
NSCollectionView and override newItemForRepresentedObject. It gives you the
represen
Sorry for the delay. I¹ve been inaccessible for reasons I won¹t get into.
I have tried it without setting any layers in IB. I think you may be
correct about the copies. Another thing I don¹t know is if each cell simply
uses the prototype to draw in the correct location, or it it does actually
ma
On Dec 2, 2012, at 6:23 PM, Gordon Apple wrote:
> I tried setting only that in IB. I also tried setting everything in that
> view nib. OriginalLayer is non-nil in the trace, but, as you see, gets
> replaced with the one with color background.
Well, it's probably not a good idea to turn on la
I tried setting only that in IB. I also tried setting everything in that
view nib. OriginalLayer is non-nil in the trace, but, as you see, gets
replaced with the one with color background.
On 12/2/12 5:48 PM, "Kyle Sluder" wrote:
> On Sun, Dec 2, 2012, at 03:07 PM, Gordon Apple wrote:
>> > I
On Sun, Dec 2, 2012, at 03:07 PM, Gordon Apple wrote:
> I have a simple subview in my NSCollectionView prototype. (Collection
> view
> is in a popover. Popover launched from a floating control panel.) It
> contains the following:
>
> - (void) awakeFromNib {
> CALayer *originalLayer = self.la
I have a simple subview in my NSCollectionView prototype. (Collection view
is in a popover. Popover launched from a floating control panel.) It
contains the following:
- (void) awakeFromNib {
CALayer *originalLayer = self.layer;
CALayer *newLayer = [CALayer layer];
newLayer.backgroun