Re: Networking framework crash

2015-02-05 Thread Roland King
> > Yep, I found that just after I sent my previous. Interesting, though a little > difficult to relate exactly to my crash. I guess tcp_connection_get_socket() > creates a file handle for the socket stream (?? guessing) and that's the one > tripping the EXC_GUARD. > > Do you or anyone else k

Re: Networking framework crash

2015-02-05 Thread Michael Nickerson
>> On Feb 4, 2015, at 9:49 PM, Graham Cox wrote: >> On 5 Feb 2015, at 12:20 pm, Roland King wrote: >> >> 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 des

Re: NSCalendar and NSDates prior to October 15, 1582

2015-02-05 Thread Jeffrey Oleander
On 2015 Jan 30, at 12:32, Steve Mykytyn wrote: The documentation for the Date and Time Programming Guide for iOS does not seem to be telling the truth, or perhaps I'm doing something wrong. From https://developer.apple.com/library/ios/documentation/Cocoa/ Conceptual/DatesAndTimes/Articles/d

Re: Networking framework crash

2015-02-05 Thread Roland King
> > Everything is a file descriptor. Open files, sockets, loaded frameworks & > bundles, even STDIN/OUT/ERROR. > > You can check if you're hitting the limit of file descriptors by > (temporarily) raising the number you can have open with setrlimit(). If you > raise it and your app stops crash

Re: Networking framework crash

2015-02-05 Thread Michael Nickerson
> On Feb 5, 2015, at 10:22 AM, Roland King wrote: > > >> >> Everything is a file descriptor. Open files, sockets, loaded frameworks & >> bundles, even STDIN/OUT/ERROR. >> >> You can check if you're hitting the limit of file descriptors by >> (temporarily) raising the number you can have ope

Re: dealloc query for NSTableCellView

2015-02-05 Thread Corbin Dunn
> On Feb 4, 2015, at 5:43 AM, Jonathan Mitchell wrote: > > >> On 4 Feb 2015, at 13:27, Roland King 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 ] >> >> wh

Re: Networking framework crash

2015-02-05 Thread Jens Alfke
> On Feb 5, 2015, at 7:22 AM, Roland King wrote: > > all of which seems to indicate processes have plenty more than 256 file > descriptors available by default. I thought 256 was left behind as a default > long ago because it was way too small. It was definitely 256 as recently as OS X 10.8

Re: NSCalendar and NSDates prior to October 15, 1582

2015-02-05 Thread Greg Parker
> On 2015 Jan 30, at 12:32, Steve Mykytyn wrote: > > The documentation for the Date and Time Programming Guide for iOS does not > seem to be telling the truth, or perhaps I'm doing something wrong. Please file a bug report. > On Feb 5, 2015, at 6:56 AM, Jeffrey Oleander wrote: > > Some count

Re: Networking framework crash

2015-02-05 Thread Greg Parker
> On Feb 4, 2015, at 8:21 PM, Graham Cox wrote: > > Do you or anyone else know if there's some inherent limit to the number of > simultaneous sockets that can be opened? I'm supposing that there's a 1:1 > correspondence between a NSURLSession and a socket, because of the > description against

-windowdidLoad

2015-02-05 Thread Raglan T. Tiger
What does [super windowDidLoad} accomplish in the subclass implementation of -windowDidLoad and is it necessary? -rags ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Re: -windowdidLoad

2015-02-05 Thread Quincey Morris
On Feb 5, 2015, at 13:13 , Raglan T. Tiger wrote: > > What does [super windowDidLoad} accomplish in the subclass implementation of > -windowDidLoad and is it necessary? If “the subclass” is a direct subclass of NSWindowController, then it does what the NSWindowController class reference says i

Re: Self describing NSObjects.

2015-02-05 Thread Seth Willits
On Feb 4, 2015, at 10:43 AM, Alex Zavatone wrote: > > How would you think about implementing this? It seems like I run into this > need year after year after year. NSString * NSObjectDescriptionUsingProperties(id obj) { unsigned int propCount; objc_property_t * propList = clas

Re: Networking framework crash

2015-02-05 Thread Graham Cox
> On 6 Feb 2015, at 6:48 am, Greg Parker wrote: > > You can use getrlimit(RLIMIT_NOFILE, …) to query the limit in your process, > and setrlimit(RLIMIT_NOFILE, …) to attempt to raise it. The default limit may > be as low as 256, depending on OS version and on how the process is launched. > (No

Re: Self describing NSObjects.

2015-02-05 Thread Seth Willits
On Feb 5, 2015, at 3:54 PM, Seth Willits wrote: >> How would you think about implementing this? It seems like I run into this >> need year after year after year. > > > NSString * NSObjectDescriptionUsingProperties(id obj) > { > unsigned int propCount; > objc_property_t * propList

Re: Self describing NSObjects.

2015-02-05 Thread Shazron
Similar to Seth's method: https://github.com/phonegap/adobe-creative-sdk-foundation/blob/master/src/ios/NSObject%2BPropertiesAsDictionary.m Then you could serialize the dictionary to a JSON string, and print that. On Thu, Feb 5, 2015 at 3:54 PM, Seth Willits wrote: > On Feb 4, 2015, at 10:43 AM,

Re: Networking framework crash

2015-02-05 Thread Greg Parker
> On Feb 5, 2015, at 3:54 PM, Graham Cox wrote: > > This is great. Running from XCode I get 7168, archiving and exporting a final > build of my app, I get 256... bingo! Only the built version was seeing this > crash, another reason I was having a lot of trouble debugging it. > > With 50 tasks

Re: Networking framework crash

2015-02-05 Thread Roland King
> >> >> If you hit that limit you should see errors from various network API. File a >> bug report if you find some API that causing weird crashes instead of >> failing gracefully or halting with an appropriate error message when you run >> out of file descriptors. > > Well I'm seeing EXC_GUA

Re: Networking framework crash

2015-02-05 Thread Kyle Sluder
On Thu, Feb 5, 2015, at 05:54 PM, Graham Cox wrote: > > > On 6 Feb 2015, at 6:48 am, Greg Parker wrote: > > > > You can use getrlimit(RLIMIT_NOFILE, …) to query the limit in your process, > > and setrlimit(RLIMIT_NOFILE, …) to attempt to raise it. The default limit > > may be as low as 256, de

Re: Networking framework crash

2015-02-05 Thread Graham Cox
> On 6 Feb 2015, at 11:18 am, Roland King wrote: > > whatever Graham did to launch his process in this case got 256, which I > haven’t yet found a way to get a process on 10.10 to do by default yet > barring making launchd launch it. I simply double-clicked it in the Finder. This is on 10.10

Re: Networking framework crash

2015-02-05 Thread Roland King
> On 6 Feb 2015, at 8:29 am, Graham Cox wrote: > > >> On 6 Feb 2015, at 11:18 am, Roland King wrote: >> >> whatever Graham did to launch his process in this case got 256, which I >> haven’t yet found a way to get a process on 10.10 to do by default yet >> barring making launchd launch it. >

Re: Networking framework crash

2015-02-05 Thread Kyle Sluder
On Thu, Feb 5, 2015, at 06:40 PM, Roland King wrote: > > > On 6 Feb 2015, at 8:29 am, Graham Cox wrote: > > > > > >> On 6 Feb 2015, at 11:18 am, Roland King wrote: > >> > >> whatever Graham did to launch his process in this case got 256, which I > >> haven’t yet found a way to get a process

Show count of Core Data to-many relationship in NSTableView cell with bindings?

2015-02-05 Thread Steve Mills
I have a Core Data entity called Keyword that has a to-many relationship to another entity called Image. In a table that displays these Keywords, I want one column to show the number of Images that use that particular Keyword. I tried setting the Value binding for the Table View Cell to bind to

Re: Show count of Core Data to-many relationship in NSTableView cell with bindings?

2015-02-05 Thread Quincey Morris
On Feb 5, 2015, at 23:43 , Steve Mills wrote: > > [<_NSFaultingMutableSet 0x620246e0> > addObserver:forKeyPath:options:context:] is not supported. Key path: count > > Is it not possible to bind to an entity's relationship properties? You can’t bind *through* an array or set collection clas