Hey guys,
I have this code:
- (void)setToolBar
{
NSToolbar *toolbar = [[[NSToolbar alloc] initWithIdentifier: _ToolBar] autorelease];
[toolbar setAllowsUserCustomization: NO];
[toolbar setAutosavesConfiguration: YES];
[toolbar setDelegate: self];
[prefWindow setToolbar: toolbar];
}
That sets up a toolbar on a preferences window, so I called [self setToolBar]; in awakeFromNib. But, even though it is a warning. I get "Preferences" does not respond to "setToolBar:". This gets quite annoying since I prefer no warnings. This also happens when I try other toolbars.