• 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: performSelectorOnMainThread problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performSelectorOnMainThread problem


  • Subject: Re: performSelectorOnMainThread problem
  • From: Nick Rogers <email@hidden>
  • Date: Thu, 13 Mar 2008 07:30:37 +0530

Here's the declaration of updateProgress:

- (void)updateProgress:(NSMutableDictionary *)dict;

Console Log:
[Switching to process 2321 thread 0x9013]
2008-03-13 07:21:09.194 DiskViewer[2321] *** -[Progress updateProgress:]: selector not recognized [self = 0x3377a0]
[Switching to process 2321 local thread 0xf03]
2008-03-13 07:21:09.222 DiskViewer[2321] *** NSThread: ignoring exception '*** -[Progress updateProgress:]: selector not recognized [self = 0x3377a0]' that raised during delayed perform of target 0x3377a0 and selector 'updateProgress:'
[Switching to process 2321 thread 0x9013]


Here Progress is the class that has the method that is called when detaching this secondary thread.
It resolves the exception and moves ahead and updateProgress is not called.


cheers,
Nick
On 13-Mar-08, at 7:14 AM, John Stiles wrote:

Maybe you should show us the definition of -updateProgress and tell us what you mean by "didn't work." For instance, are any errors logged to the Run Log?


Nick Rogers wrote:
Yes I was using updateProgress with the colon earlier, but still didn't worked.

Wishes,
Nick

On 13-Mar-08, at 7:00 AM, John Stiles wrote:

If -updateProgress is taking "data" as an argument, then you probably want
@selector(updateProgress:)


Note the colon.

Nick Rogers wrote:

Hi,
In my secondary thread I'm doing:
[self performSelectorOnMainThread:@selector(updateProgress) withObject:data waitUntilDone:YES];


with the error that self does not recognize the selector updateProgress.
I have imported the main AppController.h into this secondary class file. still the problem.


Regards,
Nick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com


Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >performSelectorOnMainThread problem (From: Nick Rogers <email@hidden>)
 >Re: performSelectorOnMainThread problem (From: John Stiles <email@hidden>)
 >Re: performSelectorOnMainThread problem (From: Nick Rogers <email@hidden>)
 >Re: performSelectorOnMainThread problem (From: John Stiles <email@hidden>)

  • Prev by Date: Core Data - Cascading Not Working?
  • Next by Date: Re: performSelectorOnMainThread problem
  • Previous by thread: Re: performSelectorOnMainThread problem
  • Next by thread: Re: performSelectorOnMainThread problem
  • Index(es):
    • Date
    • Thread