[Biococoa-dev] initWithSymbol
Alexander Griekspoor
a.griekspoor at nki.nl
Sat Mar 12 06:52:22 EST 2005
Long live untyped methods ;-)
The problem is that you haven't told the compiler which class it should
lookup the method in... (for instance: [(id)theObject initWithChar:
'a'] will give you the problem, [(BCSymbol *)theObject initWithChar:
'a'] will not).
> Are we not supposed to have method names that are already in the
> Foundation framework?
No, it's perfectly fine to use the same method names in different
classes, in fact there are many examples and results in consistency.
Example: initWithCapacity: )
Alex
On 12-mrt-05, at 12:45, Koen van der Drift wrote:
>
> On Mar 12, 2005, at 2:54 AM, Alexander Griekspoor wrote:
>
>> absolutely not, good point, go ahead!
>>
>>
>
> Hmm, I now get a buch of the following warnings:
>
> warning: multiple declarations for method `initWithChar:'
> warning: using `-(id)initWithChar:(char)value'
> warning: also found `-(id)initWithChar:(unichar)aChar'
> warning: also found `-(id)initWithChar:(unichar)aChar'
>
> The '-(id)initWithChar:(char)value' version is in NSValue, the others
> are in BioCocoa. Any idea how I can get these warnings to go away?
> Are we not supposed to have method names that are already in the
> Foundation framework?
>
>
> - Koen.
>
> _______________________________________________
> Biococoa-dev mailing list
> Biococoa-dev at bioinformatics.org
> https://bioinformatics.org/mailman/listinfo/biococoa-dev
>
>
*********************************************************
** Alexander Griekspoor **
*********************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
AIM: mekentosj at mac.com
E-mail: a.griekspoor at nki.nl
Web: http://www.mekentosj.com
Windows vs Mac
65 million years ago, there were more
dinosaurs than humans.
Where are the dinosaurs now?
*********************************************************
*********************************************************
** Alexander Griekspoor **
*********************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
AIM: mekentosj at mac.com
E-mail: a.griekspoor at nki.nl
Web: http://www.mekentosj.com
The requirements said: Windows 2000 or better.
So I got a Macintosh.
*********************************************************
More information about the Biococoa-dev
mailing list