Corrected preprocessor compilation problem w/ NSOutlineView and NSToolbar

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14507 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2002-09-21 22:57:25 +00:00
parent d1780257ae
commit b91e0079e4
3 changed files with 9 additions and 4 deletions

View file

@ -227,9 +227,9 @@ static const int current_version = 1;
- (void) setDelegate: (id)anObject
{
#define CHECK_REQUIRED_METHOD(selector_name) \
if (![anObject respondsToSelector: @selector(##selector_name)]) \
if (![anObject respondsToSelector: @selector(selector_name)]) \
[NSException raise: NSInternalInconsistencyException \
format: @"delegate does not respond to ##selector_name"]
format: @"delegate does not respond to %@",@#selector_name]
CHECK_REQUIRED_METHOD(toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:);
CHECK_REQUIRED_METHOD(toolbarAllowedItemIdentifiers:);