[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSOutlineView compilation error
From: |
Gregory Casamento |
Subject: |
Re: NSOutlineView compilation error |
Date: |
Sat, 21 Sep 2002 13:36:42 -0700 (PDT) |
The ## is needed to paste the name of the method being checked for. Simply
replacing it as you have done *will not work* as now it is looking for a method
named "selector_name". The "errors" you mention are preprocessor warnings and
are harmless.
This warning does not appear when using gcc < 3.0.
GJC
--- Stefan Urbanek <urbanek@host.sk> wrote:
> 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
>
>
>
> _______________________________________________
> Bug-gnustep mailing list
> Bug-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-gnustep
=====
Gregory John Casamento
------------------------------------------------------
Please sign the petition against software patents at:
http://www.petitiononline.com/pasp01/petition.html
------------------------------------------------------
IM handles: yahoo: greg_casamento aim: gjcasa
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com