So basically I have an IBoutlet NSMenuItem called localIP. I am using the setTitle instance in my .m and I want to set the title equal to a string (@"") and an NSString.
Look at the following fragment.
[localIP setTitle:(@"Local IP: %@", ip)];
The problem is I get a warning saying expression result unused. So what is displayed is the value of the NSString ip. I want the final output to be like: Local IP: 192.xxx.x.x
I am new to objective-c. I primarily programmed in java before.