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: Fri, 17 Sep 2010 18:50:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Germán Arias <german@xelalug.org> writes:

> On dom, 2010-09-12 at 01:23 +0200, Csanyi Pal wrote:

> Other thing, is a good idea have the app in English. If not, when a
> user with other language than Hungarian or Serbian, the gnustep will
> try run the app on english, but.... the app isn't in english. At this
> moment the app can't run on my machine.

I created English.lproj too for LPT_Interface.app and ask you to try it
out after downloading and compiling it again from here: 
ftp://csanyi-pal.info/objective-c/LPT_Interface.tar.bz2 

As for adding action to a toggle button, in case of my application I
think that that so far it doesn't works in case when the button title
="0" because the button has a title and an alternateTitle.

I think that that the title never get String value of "0" because in
gsmarkup file title="1" and alternateTitle="0" so the following code
doesn't works:

[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 did try the code:

   else if (![title isEqualToString: @"1"])

but this doesn't works.

Any advices?

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