Re: dealloc query for NSTableCellView

2015-02-04 Thread Quincey Morris
On Feb 4, 2015, at 05:43 , Jonathan Mitchell jonat...@mugginsoft.com wrote: Is it normal for superclasses to message during dealloc? I would still like to know what people’s expectations are here. It is normal for classes to message during dealloc, so it’s normal for superclasses to do so.

Resolving bizarre autolayout crashes.

2015-02-04 Thread Alex Zavatone
This problem is behind me but in case something like this appears again, I'm wondering how others would attempt to resole this type of issue in autolayout on iOS. Configuration Xcode 5.1.1 iOS 7 In working on modifying a view controller that someone else wrote with an XIB that uses autolayout

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-02-04 Thread Jon Baumgartner
I filed a radar: rdar://19716583 On Thu, Jan 29, 2015 at 10:55 AM, Kyle Sluder k...@ksluder.com wrote: Even in a sandbox, you can get the user’s home directory using getpwuid(3) as mentioned in the docs:

Re: Self describing NSObjects.

2015-02-04 Thread Pascal J. Bourguignon
On 04 Feb 2015, at 19:43, Alex Zavatone z...@mac.com wrote: All too often, I have a simple data class that is just a bunch of properties of cocoa collections. When walking through the debugger, it would be nice if these classes could auto describe. Consider this. I have a class

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Ben Kennedy
On 04 Feb 2015, at 8:26 am, Alex Zavatone z...@mac.com wrote: Looking at the UIScrollView to which they applied, I couldn't make heads or tails of how the constraints listed in the console translated into the constraints on the only UIScrollView in the XIB. I don't suppose you saved a copy

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Alex Zavatone
Here's the error log: Error message follows. UIView property translatesAutoresizingMaskIntoConstraints) ( NSLayoutConstraint:0x16d8e230 V:[UIScrollView:0x16d8df50(=1368)], NSLayoutConstraint:0x16d8f7e0 V:|-(0)-[UIScrollView:0x16d8df50] (Names: '|':UIView:0x16d8f650 ),

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Jonathan Mitchell
On 4 Feb 2015, at 16:26, Alex Zavatone z...@mac.com wrote How would those of you who are much better versed in autolayout than I go about resolving this type of issue that crops up when the XIB with constraints hasn't been modified in the first place and there is no code affecting the

Self describing NSObjects.

2015-02-04 Thread Alex Zavatone
All too often, I have a simple data class that is just a bunch of properties of cocoa collections. When walking through the debugger, it would be nice if these classes could auto describe. Consider this. I have a class with the properties of NSStrings that are firstname, lastname, address.

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Kyle Sluder
On Wed, Feb 4, 2015, at 12:24 PM, Alex Zavatone wrote: Here's the error log: Error message follows. UIView property translatesAutoresizingMaskIntoConstraints) ( NSLayoutConstraint:0x16d8e230 V:[UIScrollView:0x16d8df50(=1368)], This looks like it might be the culprit.

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Michael Crawford
If debugging your code or interface builder layouts don't help, it could be a corrupt Xcode project. I have at times been able to fix my .pbxproj documents by editing them with a text editor. If you study them for a little while you can obtain some insight as to what the format means. There

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Alex Zavatone
Thanks Kyle. The thing that scares me here is that I have no idea why this started failing and why it stopped, so I'm afraid it could stop working at any time without knowing why. I can see this constraint on the scroll view itself, and I think you hit the nail on the head here. I'll pass

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Alex Zavatone
We haven't moved to Xcode 6 yet. This isn't in Xcode 5, is it? Sent from my iPad. Please pardon typos. On Feb 4, 2015, at 1:06 PM, Jonathan Mitchell jonat...@mugginsoft.com wrote: On 4 Feb 2015, at 16:26, Alex Zavatone z...@mac.com wrote How would those of you who are much better

Re: Networking framework crash

2015-02-04 Thread Michael Crawford
No disrespect, but after 30+ years of developing, I am roughly conversant with debugging strategies. My apologies, I sent my spam before noting who I was sending it to. Of course I know you've been a coder, actually for quite a longer time than I have. There are some other considerations that

Re: Networking framework crash

2015-02-04 Thread Graham Cox
On 5 Feb 2015, at 2:14 pm, Roland King r...@rols.org wrote: I am googling EXC_GUARD but haven't found anything that breaks it down - just a bunch of people asking what it is. Really? Google sent me to twitter sent me to devforums sent me to eskimo1. eg

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Ben Kennedy
On 04 Feb 2015, at 1:08 pm, Alex Zavatone z...@mac.com wrote: Thanks Kyle. The thing that scares me here is that I have no idea why this started failing and why it stopped, so I'm afraid it could stop working at any time without knowing why. Kyle already gave you a likely reason: you have

Re: Networking framework crash

2015-02-04 Thread Michael Crawford
There are all kinds of ways that your bug could be somewhere else, other than where the processor finds an illegal instruction that generates an exception that yields your panic. There are a number of strategies for dealing with this that are quite a lot easier than single-stepping with a

Networking framework crash

2015-02-04 Thread Graham Cox
Anyone seen this? My fault, or...? OS Version:Mac OS X 10.10.2 (14C109) Report Version:11 Anonymous UUID:41C0442D-1002-83C7-8C29-1DCC8E683B2F Sleep/Wake UUID: 5DE82D59-D0D8-4695-A86E-23F6ABBFAEAB Time Awake Since Boot: 30 seconds Time Since Wake: 6200

Re: Networking framework crash

2015-02-04 Thread Graham Cox
On 5 Feb 2015, at 12:28 pm, Alex Zavatone z...@mac.com wrote: Hard to tell without the code that surrounds it. That's the problem - there is no code that surrounds it. I'm using the NSURLSession/NSURLSessionDataTask interface. This internally calls down into operation queues, low level

Re: Networking framework crash

2015-02-04 Thread Alex Zavatone
Hard to tell without the code that surrounds it. On Feb 4, 2015, at 8:00 PM, Graham Cox wrote: Anyone seen this? My fault, or...? OS Version:Mac OS X 10.10.2 (14C109) Report Version:11 Anonymous UUID:41C0442D-1002-83C7-8C29-1DCC8E683B2F Sleep/Wake UUID:

Re: Networking framework crash

2015-02-04 Thread Roland King
You should google EXC_GUARD, it’s interesting. 0x400200fe the 02 in the middle says the guard is in dup(), which it is. The 0xfe at the end tells you what file descriptor it’s on. (0xfe .. really, seems unusually if not impossibly large for a file descriptor, you got that many files

Re: Networking framework crash

2015-02-04 Thread Graham Cox
On 5 Feb 2015, at 1:53 pm, Michael Crawford mdcrawf...@gmail.com wrote: This Spam Has Been Brought To You By: No disrespect, but after 30+ years of developing, I am roughly conversant with debugging strategies. This is not an easy one to isolate, because there's very little information on

Re: dealloc query for NSTableCellView

2015-02-04 Thread Roland King
On 4 Feb 2015, at 21:16, Jonathan Mitchell jonat...@mugginsoft.com wrote: In my arc app I dispose of observers in -dealloc. The pattern I have established seems to work well but one case has me rethinking my approach. Everything pivots around NSViewController -representedObject; -

dealloc query for NSTableCellView

2015-02-04 Thread Jonathan Mitchell
In my arc app I dispose of observers in -dealloc. The pattern I have established seems to work well but one case has me rethinking my approach. Everything pivots around NSViewController -representedObject; - (void)setRepresentedObject:(id)object { if (self.representedObject) [self

Re: dealloc query for NSTableCellView

2015-02-04 Thread Jonathan Mitchell
On 4 Feb 2015, at 13:27, Roland King r...@rols.org wrote: If I have an observation pattern which is set up, and the previous one torn down, in setXXX:(id)xxx like you do then my dealloc usually goes [ self setXXX:nil ] which both removes the observers and sets the property to nil so

Re: Self describing NSObjects.

2015-02-04 Thread Richard Heard
Or you can call _ivarDescription on the object in question. -R On 4 Feb 2015, at 10:54:49 AM, Pascal J. Bourguignon p...@informatimago.com wrote: On 04 Feb 2015, at 19:43, Alex Zavatone z...@mac.com wrote: All too often, I have a simple data class that is just a bunch of properties

Re: Self describing NSObjects.

2015-02-04 Thread Graham Cox
On 5 Feb 2015, at 3:38 pm, Richard Heard heard...@gmail.com wrote: Or you can call _ivarDescription on the object in question. -R iOS only, apparently - doesn't seem to exist on Mac. And it's undocumented, unlike the runtime functions. --Graham

Re: Networking framework crash

2015-02-04 Thread Roland King
I am googling EXC_GUARD but haven't found anything that breaks it down - just a bunch of people asking what it is. Really? Google sent me to twitter sent me to devforums sent me to eskimo1. eg https://devforums.apple.com/message/914791#914791