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

@ -1,3 +1,8 @@
2002-09-21 18:54 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSOutlineView.m corrected preprocessor error messages.
* Source/NSToolbar.m corrected preprocessor error messages.
2002-09-21 17:48 Alexander Malmberg <alexander@malmberg.org>
* Source/NSFontPanel.m (-_familySelectionChanged:, score_difference):

View file

@ -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:);

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:);