discuss-gnustep
[Top][All Lists]
Advanced

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

Re: LPT_Interface.app - implementing button action


From: Csanyi Pal
Subject: Re: LPT_Interface.app - implementing button action
Date: Sat, 18 Sep 2010 11:37:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Germán Arias <address@hidden> writes:

> On vie, 2010-09-17 at 18:50 +0200, Csanyi Pal wrote:

>> [code]
>>   NSString *title = [sender title];
>> 
>>    if ([title isEqualToString: @"1"])
>>      {
>>        [StatLine setStringValue: @"write logical 1 to the data port"];
>>      }
>>    else if ([title isEqualToString: @"0"])
>>      {
>>        [StatLine setStringValue: @"write logical 0 to the data port"];
>>      }
>> [/code]

> I think you can solve this using tags. Something like:
>
> <botton title="something" tag=1 />

Thanks, but still can't understand why doesn't works the above code in
the case when 'title isEqualToString: @"0"]' ?
I believe that that this code should work..

-- 
Regards, Paul Chany
http://www.debian.org
http://wiki.debian.org/DebianEdu
http://csanyi-pal.info




reply via email to

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