I\'ve googled around and found some answers but I didn\'t get any of them to work. I have one NSObject with the class \"A\" and a second class \"B\" without an NSObject. In
When you write:
I have one NSObject with the class "A" and a second class "B" without an NSObject.
It tells me that you don't have your head around the basic concepts. Read through Apple's objective-C introduction, and the tutorial projects.
The solution is using NSNotificationCenter. Here's a thread telling you how to do it: Send and receive messages through NSNotificationCenter in Objective-C?
Then in the method reacting to the notification, you call a method accessing the Outlet
- (void) receiveTestNotification:(NSNotification *) notification
{
if ([[notification name] isEqualToString:@"TestNotification"])
//NSLog (@"Successfully received the test notification!");
[self performSelectorOnMainThread:@selector(doIt:) withObject:nil waitUntilDone:false];
}
- (void) doIt
{
//testLabel.text = @"muhaha";
}
This worked for me, I hope it does so for you as well.