Re: [BUG?] LSUIElement=YES and NSWorkspaceDidTerminateApplicationNotification

2013-08-01 Thread Stephane Sudre
On Thu, Aug 1, 2013 at 1:31 AM, Jerry Krinock je...@ieee.org wrote: On 2013 Jul 31, at 12:46, Stephane Sudre dev.iceb...@gmail.com wrote: I will file one because I consider that even if LSUIElement is set, it's still an application (otherwise there would no point in returning an running

Re: Exiting non-POSIX threads?

2013-08-01 Thread Richard Somers
On Jul 29, 2013, at 2:34 AM, Oleg Krupnov oleg.krup...@gmail.com wrote: Is there a way to exit a GCD thread? You can exit a GCD thread with something like this. - (void)invalidateQueue { _isQueueCanceled = YES; dispatch_sync(_queue, ^{}); } - (void)submitWorkToBeDone {

Re: Exiting non-POSIX threads?

2013-08-01 Thread Sean McBride
On Thu, 1 Aug 2013 08:55:59 -0600, Richard Somers said: Is there a way to exit a GCD thread? You can exit a GCD thread with something like this. That's fine if you own/have acces to the GCD queue. Oleg is talking about a general purpose framework crash/exception reporting framework, which

IOS force hidden tab to adjust subviews after rotation

2013-08-01 Thread Trygve Inda
In my iOS app with two tabs, after the device is rotated, is there a way to force the hidden tab to re-layout its subviews BEFORE clicking that tab to make it visible? One of my tabs uses an image from another tab and I need it to adjust its frame rect. Thanks.

Re: Exiting non-POSIX threads?

2013-08-01 Thread Kyle Sluder
On Thu, Aug 1, 2013, at 07:55 AM, Richard Somers wrote: - (void)submitWorkToBeDone { dispatch_async(_queue, ^{ for ( ... ) { NEVER do this. You don't own the thread. GCD does. --Kyle Sluder ___ Cocoa-dev mailing list

Re: IOS force hidden tab to adjust subviews after rotation

2013-08-01 Thread Kyle Sluder
On Thu, Aug 1, 2013, at 08:48 AM, Trygve Inda wrote: In my iOS app with two tabs, after the device is rotated, is there a way to force the hidden tab to re-layout its subviews BEFORE clicking that tab to make it visible? One of my tabs uses an image from another tab and I need it to adjust

Re: IOS force hidden tab to adjust subviews after rotation

2013-08-01 Thread Trygve Inda
On Thu, Aug 1, 2013, at 08:48 AM, Trygve Inda wrote: In my iOS app with two tabs, after the device is rotated, is there a way to force the hidden tab to re-layout its subviews BEFORE clicking that tab to make it visible? One of my tabs uses an image from another tab and I need it to

Re: IOS force hidden tab to adjust subviews after rotation

2013-08-01 Thread Kyle Sluder
On Aug 1, 2013, at 10:23 AM, Trygve Inda cocoa...@xericdesign.com wrote: On Thu, Aug 1, 2013, at 08:48 AM, Trygve Inda wrote: In my iOS app with two tabs, after the device is rotated, is there a way to force the hidden tab to re-layout its subviews BEFORE clicking that tab to make it

Re: Exiting non-POSIX threads?

2013-08-01 Thread Greg Parker
On Jul 30, 2013, at 10:51 PM, Oleg Krupnov oleg.krup...@gmail.com wrote: 1. What is the correct way of terminating the app if the exception happens in the main thread? I need the system Crash Reporter to save the context and stack trace of the original problem, not of some exception handler.