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


From: Csanyi Pal
Subject: Re: LPT_Interface.app - implementing button action - SOLVED
Date: Sun, 03 Oct 2010 17:47:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Csanyi Pal <address@hidden> writes:

> I solve this problem with the code:
>
> [code]
> if ([sender state] == 1)
>    {
>     // Value of the Status Port Byte shown in HexaDecimal scale.
>    [StatLine setStringValue: @"Value of the Status Port Byte shown in
> HexaDecimal scale."]; 
>
>    }
> else if ([sender state] == 1)

Sorry, here must stand instead of abowe line the line:

  else if ([sender state] == 0)



so the right code is:

[code]
if ([sender state] == 1)
   {
   // Do one thing.

   }
else if ([sender state] == 0)
   {
   // Do another thing.

   }
[/code]


-- 
Regards, Paul Chany
<http://www.debian.org> <http://wiki.debian.org/DebianEdu>
<http://sourceforge.net/projects/lptinterface/>
<http://csanyi-pal.info>




reply via email to

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