Im trying to change the titel in my NSStatusBar from a different class, my preferences class..
In my ManagerClass.m & .h i have declared
I then import my ManagerClass.h in my preferences.m
then inside preferences.m i try to execute:
But it seems that statusItem is never being passed to the preferences.m file, if i do a test with an if i can see that statusItem is empty..
Any ideas ?
In my ManagerClass.m & .h i have declared
Code:
- (NSStatusItem *)statusItem
{ return statusItem; }
I then import my ManagerClass.h in my preferences.m
then inside preferences.m i try to execute:
Code:
ManagerClass *someInstanceToIt = [[ManagerClass alloc] init];
[(NSStatusItem *)[someInstanceToIt statusItem] setTitle:@"New Title"];
But it seems that statusItem is never being passed to the preferences.m file, if i do a test with an if i can see that statusItem is empty..
Any ideas ?