Re: Re: NSTabViewItem and NSViewController

2019-04-04 Thread Casey McDermott
-dev-ow...@lists.apple.com When replying, please edit your Subject line so it is more specific than "Re: Contents of Cocoa-dev digest..." Today's Topics:   1. Re: Category errata in Objective-C (David Hoerl)   2. NSTabViewItem and NSViewController (Casey McDermot

Re: NSTabViewItem and NSViewController

2019-04-04 Thread Keary Suska
t using a NSTabViewController. We'll try that now. > > Thanks, > > Casey McDermott > Turtle Creek Software > > ------------ > On Thu, 4/4/19, Keary Suska wrote: > > Subject: Re: NSTabViewItem and NSViewController > To: "Casey M

Re: NSTabViewItem and NSViewController

2019-04-04 Thread Casey McDermott
but a breakpoint at dealloc doesn't help much. However, we were not using a NSTabViewController. We'll try that now. Thanks, Casey McDermott Turtle Creek Software On Thu, 4/4/19, Keary Suska wrote: Subject: Re: NSTabViewItem and NSViewControl

Re: NSTabViewItem and NSViewController

2019-04-04 Thread Andy Lee
On Apr 4, 2019, at 9:43 AM, Casey McDermott wrote: > > We have a tab view with tabs added from code. Each tab uses a NSTabViewItem > subclass, > which contains a reference to a NSViewController subclass within it to manage > tab contents. > Users click to add and remove tabs. I see that NSTa

Re: NSTabViewItem and NSViewController

2019-04-04 Thread Keary Suska
Who owns the view controller? Apparently, no-one, sine ARC is deallocating it once the last reference to it (the tab view item) is deallocated. If there is supposed to be an owner, make sure the owner’s reference is strong. If you can target 10.10+, using NSTabViewController is probably a better