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: David Chisnall
Subject: Re: signature error NSPopUpButton with clang
Date: Sun, 28 Dec 2014 20:24:09 +0100

On 28 Dec 2014, at 19:40, Riccardo Mottola <riccardo.mottola@libero.it> wrote:

> 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?

The issue is the declaration of wherePopUp - it should not be id, give it a 
sensible type.  Otherwise the method type will be picked at random.

David

-- Send from my Jacquard Loom




reply via email to

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