Renaissance - LPT_Interface.app - implementing button action

2010-08-17 Thread csanyipal
Hi,

I develope the LPT_Interface.app and the gsmarkup file for the app
window is ready.

Now I want to give actions to buttons but don't know how to implement
these actions into the applicaton?

Say, the button is toggle type and it should to set, or reset a bit in
the parallel Data port.

To write to the Data port bit the code is in C:
---*
#include 
#include 
#include 

#define base 0x378   /* printer port base address */
#define value 1  /* numeric value to send to printer port */

main(int argc, char **argv)
{
   if (-1 == ioperm(base,1,1))
fprintf(stderr, "Couldn't get the port at %x\n", base), exit(1);

   outb(value, base);
}
---*

and this must run with root privileges.

How can I implement this code in to the application?

Because the button is toggle type I must to write the code so so when
the button has title="1" then the action code must to write logical 1 to
the Data Port bit, but when the button title="0" then it must to write
logical 0 to the bit.

Is it good to write this code in main.m file?

Also, how can I achieve that that the Error messages appeares in the
label text which id="StatLine"?

Any advices will be appreciated!

-- 
Regards, Paul Chany
You can freely correct me in my English.
http://csanyi-pal.info


___
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep


Re: Can't install Gorm on Gentoo

2010-08-17 Thread Yavor Doganov
В Mon, 16 Aug 2010 17:20:44 +0200, csanyipal написа:

> $ emerge -s gnustep-base
> gnustep-base/gnustep-base
> Latest version installed: 1.20.1

> $ emerge -s gorm
> gnustep-apps/gorm
> Latest version available: 1.2.8

That's why it doesn't build.

> How can I build the latest Gorm release on Gentoo?

I don't know, I've never used Gentoo.  I guess you'd have to ask on 
Gentoo support lists and file a bug for Gorm's FTBFS.

> Can one use and if can, how, the patch from
> http://bugs.debian.org/581940?

Applying the patch (with the `patch' program) and rebuilding it ought to 
work...


___
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep