Re: Mysterious crash with NSTableView

2016-08-27 Thread Quincey Morris
On Aug 27, 2016, at 13:55 , Andreas Falkenhahn wrote: > > I still don't know whether setting the delegate to nil > before release is a general rule or does it only apply to NSTableView? It’s not clear what delegate you mean by “button delegate”, but it doesn’t really matter. Delegates are not a

Re: Mysterious crash with NSTableView

2016-08-27 Thread Andreas Falkenhahn
On 27.08.2016 at 18:10 Alex Zavatone wrote: > Buuut, to the mind of the person learning this or trying to fit all > the complexity of learning this in their head, it might be wise in > the docs to remind the programmer that they need to do this and why > with a, "just in case you are assuming that

Re: Mysterious crash with NSTableView

2016-08-27 Thread Alex Zavatone
Sent from my iPad. Please pardon typos. On Aug 26, 2016, at 10:42 AM, Andreas Falkenhahn wrote: > On 26.08.2016 at 17:35 Gary L. Wade wrote: > >> Try clearing your table view's data source and delegate before >> releasing their object. It appears the pointer gets reassigned to an >> NSRectSet

Re: Releasing properties?

2016-08-27 Thread じょいすじょん
> On 2016 Aug 27, at 23:31, Keary Suska wrote: > > >> On Aug 27, 2016, at 8:22 AM, じょいすじょん >> wrote: >> >> >>> On 2016 Aug 27, at 23:09, Keary Suska wrote: >>> On Aug 27, 2016, at 5:22 AM, Andreas Falkenhahn wrote: Consider the following example properties: >>

Re: Releasing properties?

2016-08-27 Thread Keary Suska
> On Aug 27, 2016, at 8:22 AM, じょいすじょん > wrote: > > >> On 2016 Aug 27, at 23:09, Keary Suska wrote: >> >>> >>> On Aug 27, 2016, at 5:22 AM, Andreas Falkenhahn >>> wrote: >>> >>> Consider the following example properties: >>> >>> NSApplication: @property(strong) NSMenu *mainMenu >>>

Re: Releasing properties?

2016-08-27 Thread じょいすじょん
> On 2016 Aug 27, at 23:09, Keary Suska wrote: > >> >> On Aug 27, 2016, at 5:22 AM, Andreas Falkenhahn >> wrote: >> >> Consider the following example properties: >> >> NSApplication: @property(strong) NSMenu *mainMenu >> NSFont: @property(readonly, copy) NSString *familyName >> NSColo

Re: Releasing properties?

2016-08-27 Thread Keary Suska
> On Aug 27, 2016, at 5:22 AM, Andreas Falkenhahn > wrote: > > Consider the following example properties: > >NSApplication: @property(strong) NSMenu *mainMenu >NSFont: @property(readonly, copy) NSString *familyName >NSColorPanel: @property(copy) NSColor *color > > AFAIU I must not

Releasing properties?

2016-08-27 Thread Andreas Falkenhahn
Consider the following example properties: NSApplication: @property(strong) NSMenu *mainMenu NSFont: @property(readonly, copy) NSString *familyName NSColorPanel: @property(copy) NSColor *color AFAIU I must not release the NSMenu/NSString/NSColor obtained from these properties because

[SOLVED] Re: length of file from NSFileHandle?

2016-08-27 Thread Graham Cox
> On 27 Aug 2016, at 1:41 PM, Ken Thomases wrote: > > The reason it has no length property is because not all NSFileHandles have > the concept of a length. For example, a file handle associated with a pipe > or socket. Right, though for those cases it could just return 0 or some other marker

Re: Mysterious crash with NSTableView

2016-08-27 Thread Greg Parker
> On Aug 26, 2016, at 10:46 PM, Doug Hill wrote: > >> On Aug 26, 2016, at 9:20 PM, Jeff Szuhay wrote: >> On Aug 26, 2016, at 8:44 PM, Sandor Szatmari wrote: However, in your case I wonder what the static analyzer in Xcode tells you about the bug you see? >>> >>> I