bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView compilation error


From: Stefan Urbanek
Subject: NSOutlineView compilation error
Date: Sat, 21 Sep 2002 18:18:14 +0100

Hi,

While compiling NSOutlineView.m (from CVS) with gcc-3.3 snapshot:

Compiling file NSOutlineView.m ...
NSOutlineView.m:726:50: pasting "(" and "outlineView" does not give a valid 
preprocessing token
NSOutlineView.m:727:54: pasting "(" and "outlineView" does not give a valid 
preprocessing token
NSOutlineView.m:728:60: pasting "(" and "outlineView" does not give a valid 
preprocessing token

Around line 722 there is:

#define CHECK_REQUIRED_METHOD(selector_name) \
 if (![anObject respondsToSelector: @selector(##selector_name)]) \
   [NSException raise: NSInternalInconsistencyException \
                format: @"data source does not respond to ##selector_name"]

I have just removed the ## from @selector(##selector_name):

 #define CHECK_REQUIRED_METHOD(selector_name) \
!    if (![anObject respondsToSelector: @selector(selector_name)]) \
     [NSException raise: NSInternalInconsistencyException \
                  format: @"data source does not respond to ##selector_name"]

Not sure if it is ok, but it has compiled.

Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]