Yeah, good points. I solved it better by overriding my NSCollectionViewItem
subclass’ preferredContentSize and setting it from my
itemForRepresentedObjectAt dataSource function when I get access to the item.
Cheers,
Arved
> On 2019-10-22, at 03:41, David Duncan wrote:
>
>
>
>> On Oct 21,
> On Oct 21, 2019, at 3:26 AM, Arved von Brasch via Cocoa-dev
> wrote:
>
> Hello list,
>
> Thanks to someone on the list who provided me with a clue, I found that if I
> add this to my NSCollectionViewItem subclass:
>
> override func viewWillAppear() {
>super.viewWillAppear()
>
Hello list,
Thanks to someone on the list who provided me with a clue, I found that if I
add this to my NSCollectionViewItem subclass:
override func viewWillAppear() {
super.viewWillAppear()
view.removeConstraints(view.constraints)
view.addConstraint(NSLayoutConstraint.in