discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

performSelectorOnMainThread: issue


From: Amr Aboelela
Subject: performSelectorOnMainThread: issue
Date: Tue, 3 Mar 2015 19:09:13 -0800

Hi,

I noticed that performSelectorOnMainThread: hangs, and to solve this issue I had to do the following in NSRunLoop.m:

Instead of:

- (BOOL) runMode: (NSString*)mode beforeDate: (NSDate*)date

{

...

  d = [self limitDateForMode: mode];

  if (d == nil)

    {

      [arp drain];

      return NO;

    }

...

}

I did:

- (BOOL) runMode: (NSString*)mode beforeDate: (NSDate*)date

{

...

  d = [self limitDateForMode: mode];

  if (d == nil)

    {

      [self acceptInputForMode:mode beforeDate:date];

      [arp drain];

      return NO;

    }

...

}

i.e. I moved this line [self acceptInputForMode:mode beforeDate:date]; inside the if statement


reply via email to

[Prev in Thread] Current Thread [Next in Thread]