Re: Subclassing NSCollectionViewFlowLayout

2019-10-21 Thread Arved von Brasch via Cocoa-dev
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)

Re: Subclassing NSCollectionViewFlowLayout

2019-10-24 Thread Arved von Brasch via Cocoa-dev
>> 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: >> >&

Subclassing NSCollectionViewFlowLayout

2019-10-20 Thread Arved von Brasch via Cocoa-dev
Hello Cocoa List, I’m in the process of porting a hobby project to up-to-date Swift so it can be used on Catalina (and I can upgrade my work machine - still looking for a QuickTime 7 Pro replacement, though). I’ve encountered a phenomenon subclassing NSCollectionViewFlowLayout that I haven’t

UndoManager setActionNames

2020-07-05 Thread Arved von Brasch via Cocoa-dev
Hi list, Where’s the best place to intercept undo/redo actions to edit the action name (’setActionName()’) for the UndoManager in a CoreData application? In particular, when a particular entity’s attribute's change. Obviously, I want to do this so that when the user edits something, the menu

UndoManager, NSManagedObjectContext and sheets

2020-11-10 Thread Arved von Brasch via Cocoa-dev
Hello Cocoa list, I’m wondering about the best approach to managing Undo/Redos when presenting a sheet that allows multiple changes to the selected item in an NSArrayController. My approach mostly works as I expect, but there are a few edge cases that seem more difficult to deal with than it

Re: NSCollectionView, disappearing items on reloadData

2023-01-11 Thread Arved von Brasch via Cocoa-dev
ce >> with large view hierarchies. It’s better to use API like >> -performBatchUpdates:completionHandler: and related methods to >> insert/move/remove views as needed. >> >> Hope that helps & good luck. >> >> —Rob >> >> >>&g

NSCollectionView, disappearing items on reloadData

2023-01-08 Thread Arved von Brasch via Cocoa-dev
Hello list, I’ve encountered a bug for the life of me I can’t work out. I’m restricted to supporting Mojave (10.14) for the time being, so it is possible this has been fixed / not an issue on later releases. This is a Core Data backed application, with several Xib loaded views that are swapped

Re: NSCollectionView, disappearing items on reloadData

2023-01-08 Thread Arved von Brasch via Cocoa-dev
oadData is a pretty big hammer and can kill performance > with large view hierarchies. It’s better to use API like > -performBatchUpdates:completionHandler: and related methods to > insert/move/remove views as needed. > > Hope that helps & good luck. > > —Rob > >