discuss-gnustep
[Top][All Lists]
Advanced

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

Re: signature error NSPopUpButton with clang


From: Fred Kiefer
Subject: Re: signature error NSPopUpButton with clang
Date: Sun, 28 Dec 2014 20:19:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Am 28.12.2014 um 19:40 schrieb Riccardo Mottola:
> Riccardo Mottola wrote:
>> The type for the selector used in the call will be the static type of
>> wherePopUp.  What is the type declared as, what is the actual run-time
>> type of the object?
>> wherePopUp is
>>   IBOutlet id wherePopUp;
>>
>> but don't we know from the error message that it is a [NSPopUpButton
>> itemAdIndex] ? It expects an NSInteger both by Cocoa spec and by our
>> own header, I checked. We pass a constant to it, 0
> since casting does not help and in from what I understand I am passing
> an integer constant, thus signed, where else could be the problem? Other
> suggestions?

Most likely your compiler thinks you are calling the method on an object
from the class NSCollectionView. On that class the signature is
different. You could try to use the correct type for wherePopUp or add a
cast in the call.

Hope this helps,
Fred



reply via email to

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