• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSObject performSelectorOnMainThread:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObject performSelectorOnMainThread:


  • Subject: Re: NSObject performSelectorOnMainThread:
  • From: spike <email@hidden>
  • Date: Thu, 13 Mar 2003 22:55:07 -0500

MacOS X 10.2.4

backtrace/ debugging revealed NOTHING. It basically seemed to have crashed during an idle loop.

however, the problem decided to solve itself, I had commented out the code that used that temporarily to fix another problem I was having and when I went to go back to playing with that, it worked. I dunno what the deal is. It's working now, I'm happy.

between commenting out the code and then seeing it work, about 6 hours had passed, I restarted my computer, completely changed what programs were running, and had changed some files around, so I'm thinking it may have been something external affecting this? I did give the the .app to my friend and he ran it and it crashed at the same moment, so I dunno. it works, though, and I'm happy, sorta. =)


...spike




On Thursday, March 13, 2003, at 10:19 pm, Nick Zitzmann wrote:


On Thursday, March 13, 2003, at 08:51 AM, spike wrote:

so I have my controller class call it liek this (in my thread method):

[self performSelectorOnMainThread: @selector(updateMainGUI:) withObject: [NSNumber numberWithBool: YES] waitUntilDone: NO];

to test it out, I did this in my updateMainGUI:

- (void)updateMainGUI:(NSNumber *)isStarting {
NSLog(@"updateMainGUI!!!! Go go go!");
}

EVERY time I call performSelectorOnMainThread, I get a signal 11 SIGSEGV.

1. What version of Mac OS X are you using?

2. Do you have a crash log or some other backtrace?

I've used -mainThreadPerformSelector: from the OmniFoundation framework a number of times with no problems. If that still doesn't work for you, then you might want to try using OmniFoundation...

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

Smile! It confuses people!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSObject performSelectorOnMainThread: (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Checking the type...
  • Next by Date: Re: State of Cocoa Adoption
  • Previous by thread: Re: NSObject performSelectorOnMainThread:
  • Next by thread: Re: NSObject performSelectorOnMainThread:
  • Index(es):
    • Date
    • Thread