From b91e0079e4bf3eec5f6f11ad904867c9ca67c60e Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sat, 21 Sep 2002 22:57:25 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ Source/NSOutlineView.m | 4 ++-- Source/NSToolbar.m | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b7184dd97..1fa501df0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-09-21 18:54 Gregory John Casamento + + * Source/NSOutlineView.m corrected preprocessor error messages. + * Source/NSToolbar.m corrected preprocessor error messages. + 2002-09-21 17:48 Alexander Malmberg * Source/NSFontPanel.m (-_familySelectionChanged:, score_difference): diff --git a/Source/NSOutlineView.m b/Source/NSOutlineView.m index 40bd591be..f6994cd85 100644 --- a/Source/NSOutlineView.m +++ b/Source/NSOutlineView.m @@ -719,9 +719,9 @@ static NSImage *unexpandable = nil; - (void) setDataSource: (id)anObject { #define CHECK_REQUIRED_METHOD(selector_name) \ - if (![anObject respondsToSelector: @selector(##selector_name)]) \ + if (![anObject respondsToSelector: @selector(selector_name)]) \ [NSException raise: NSInternalInconsistencyException \ - format: @"data source does not respond to ##selector_name"] + format: @"data source does not respond to %@", @#selector_name] CHECK_REQUIRED_METHOD(outlineView:child:ofItem:); CHECK_REQUIRED_METHOD(outlineView:isItemExpandable:); diff --git a/Source/NSToolbar.m b/Source/NSToolbar.m index d9f759f4d..43585f079 100644 --- a/Source/NSToolbar.m +++ b/Source/NSToolbar.m @@ -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:);