Crashing Problem calling postNotificationName
Crashing Problem calling postNotificationName
- Subject: Crashing Problem calling postNotificationName
- From: Dave <email@hidden>
- Date: Tue, 10 Sep 2013 12:08:08 +0100
Hi,
I have a crashing problem when calling postNotificationName, the following method is called from an Operation Queue method/thread. It is called on the Main Thread (the operation queue method, uses performSelectorOnMainThread which calls "parseOperationCompleted" below. I've tried copying theResultDictionary or just passing it in the dictionary as is, same result.
Any ideas what could be causing the crash?
-(void) parseOperationComplete:(NSDictionary*) theResultDictionary
{
myUserInfoDictionary = [[NSMutableDictionary alloc] init];
[myUserInfoDictionary setObject:self.pUpdateString forKey:kUserInfoLiveUpdateString];
[myUserInfoDictionary setObject:[theResultDictionary copy] forKey:kUserInfoLiveUpdateDictionary];
[NSNotificationCenter defaultCenter] postNotificationName:kNotificationName object:self userInfo:myUserInfoDictionary];
}
Thanks in advance for any help!
All the Best
Dave
_______________________________________________
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