Communicate with NSView from another class

211 views Asked by At

I have an NSView thats used as a status item and I need to run this on/in it:

thingOne = NO;
[self setNeedsDisplay:YES];

but can't figure out how. I tried sending a notification (form another notification a class gets) but the notifications never received. I also tried to add a method to do this but it requires using a + symbol for it and I can't access the classes variables. How can this be done? (If it's even possible)

Thanks for any help

1

There are 1 answers

2
nosedive25 On

I was able to send the notification to the app delegate. Then I added a method to the view object to change the bool and had the notification call it.