Re: Using alarm(3) on background NSOperationQueue threads

2015-08-20 Thread Ken Thomases
On Aug 20, 2015, at 7:29 PM, Carl Hoefs wrote: > > From within a background NSOperationQueue thread, the effects of alarm(3) > seem to be ignored. (I use alarm() to interrupt certain system calls like > connect() when they stall.) The alarm fires, the alarm handler is invoked, > but the ongoin

Using alarm(3) on background NSOperationQueue threads

2015-08-20 Thread Carl Hoefs
From within a background NSOperationQueue thread, the effects of alarm(3) seem to be ignored. (I use alarm() to interrupt certain system calls like connect() when they stall.) The alarm fires, the alarm handler is invoked, but the ongoing sys call is not interrupted, as it would be normally. Is

Re: Crash help?

2015-08-20 Thread Michael David Crawford
Assert the validity of all your method parameters. While it can help to assert return results thats less helpful as most return results are later used as input parameters: #import - (void) foo( int *p, int n ) { assert( NULL != p && n > 0 && n < 10 ); ... return; } This might not

NSSearchField and Dates

2015-08-20 Thread Jaime Magiera
Hello folks, This question is a bit simplistic, but I’m not having luck finding an explanation. This is my first time using NSSearchFields. I’m in the process of binding them to an NSArrayController of data from a previous developer. So far, so good for the most part. However, one of the values

Re: Crash help?

2015-08-20 Thread Jens Alfke
> On Aug 20, 2015, at 2:16 AM, Mike Abdullah wrote: > > You can repro? That’s a great start! Considering it’s a crash in > objc_msgSend, my first suspicion is a zombie. Yup. A valuable things to know in Obj-C debugging is that: * 99% of the time, a crash in objc_msgsend means that the receive

Re: Private Methods

2015-08-20 Thread Jens Alfke
> On Aug 20, 2015, at 4:10 AM, Jeremy Pereira > wrote: > >> The (Obj-C) compiler knows if a superclass declares a method with the same >> selector. > > Only if the method is declared in in @interface that has been imported. It > could have been declared in a private category or class extens

Re: Will iOS app accepted on App Store if 80% of UI is rendered on UIWebView and 20% being native OCR

2015-08-20 Thread Jens Alfke
> On Aug 19, 2015, at 11:21 PM, Devarshi Kulshreshtha > wrote: > > Will Apple accept my iOS app in App Store if I have 80% of flow, UI > rendered on UIWebView and remaining 20% being integration and use of native > vendor SDKs for OCR capabilities? Sure, why not? There are many iOS apps built

Re: Swift: 'If' statement needing parentheses on closure return value property access?

2015-08-20 Thread Antonio Nunes
> On 19 Aug 2015, at 07:42, Quincey Morris > wrote: > > Clearly it’s a “more ambiguous” context than the while case, which prevents > the compiler from realizing that there is an alternative analysis that works. > In that case, it’s the error message that’s at fault, since it doesn’t really

Re: Crash help?

2015-08-20 Thread Shane Stanley
On 20 Aug 2015, at 7:16 pm, Mike Abdullah wrote: > > Try running your app with zombies enabled I spent a couple of hours playing with that the other day. After your email I tried again: success in minutes, thank you! I was failing to remove an observer... -- Shane Stanley ___

Re: Crash help?

2015-08-20 Thread Mike Abdullah
> On 20 Aug 2015, at 07:40, Shane Stanley wrote: > > I'm try to track down a crash, and I'm not sure where to begin. This is what > I see: > > Crashed Thread:0 Dispatch queue: com.apple.main-thread > > Exception Type:EXC_BAD_ACCESS (SIGSEGV) > Exception Codes: KERN_INVA

Re: Will iOS app accepted on App Store if 80% of UI is rendered on UIWebView and 20% being native OCR

2015-08-20 Thread Stephane Sudre
From your description, your app would use official APIs. So in theory, it doesn't matter if your app is just presenting a web view (like a lot of apps). But considering that the interpretation of the App Store Guidelines can vary depending on the reviewer or the weather forecast, the only way to k

Re: Will iOS app accepted on App Store if 80% of UI is rendered on UIWebView and 20% being native OCR

2015-08-20 Thread Mike Abdullah
> On 20 Aug 2015, at 07:21, Devarshi Kulshreshtha > wrote: > > I have a mobile website which at high level provides these functionalities: > > 1. Sign-in > 2. Sign-up > 3. Few forms where user can fill his additional details > 4. Providing some capabilities to user based on information provide