[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSMethodSignature porting issues
From: |
Jens Ayton |
Subject: |
NSMethodSignature porting issues |
Date: |
Wed, 27 Jun 2007 17:49:46 +0200 |
User-agent: |
Thunderbird 2.0.0.4 (Macintosh/20070604) |
Under OS X, -[NSMethodSignature methodReturnType] returns a string identical
to the @encode() string for the return type. For instance, given the following
method declarations:
- (id)idMethod;
- (NSPoint)pointMethod;
the methodReturnTypes are "@" and "{_NSPoint=ff}", respectively. However,
under GNUstep (GNUstep-base 1.13.0, Windows) we get what appears to be the
entire signature of the method, in the example cases "@8@0:4" and
"{_NSPoint=ff}12@4:8".
1. Is this the intended GNUstep behaviour? Can we expect it to continue to
work this way?
2. What is the correct parsing strategy? A prefix match would appear to work,
but there may be cases I'm not considering. The same goes for scanning up
to an integer.
--
Jens Ayton
Sed quis custodiet ipsos custodes?
- NSMethodSignature porting issues,
Jens Ayton <=