🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #2289

TextField Problem

#2289
From: Paul Martin Trunz
Date: Mon, 11 Jan 1993 10:11
34 lines
1780 bytes
Hello Ne(X)tland,

I have a strange problem. In a Panel I have a few TextFields, some of them
are strings, they work without any problem. The three last fields should
contain int's, that's where my problem starts.
From the first field the intValue-message returns the correct contents.
From the second field, intValue returns 0 when the third is empty and
the correct value if the third is filled.
From the third field I always get 0.
All fields are connected using the usual nextText, the last field
additionally sends a performClick message to the OK-Button.

What am I doing wrong ?
Does it have something to do with editValidate ?

I tried to setEntryType:NX_INTTYPE (not really sure about the name now, but
something along these lines) these fields, but this is a method of a
TextCell and the fields are TextFields and do not respond to it.

How do I get a TextCell from IB ?
Can one just change the Class-Type in IB's Attribute-Inspector to TextCell ?
(This idea just crossed my mind and I cannot verify it now)

	any pointers greatly appreciated, and please respond by Email, I will
	summarize if there is interest in the responses.

	greetings

						  Patru
-- 
God created nothing, but he did a pretty good job at it.

Email : trunz@inf.ethz.ch       or        PATRU@EZINFO.vmsmail.ethz.ch
Technical Details
Message-ID: <1993Jan11.101100.26539@neptune.inf.ethz.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!chsun!bernina!neptune!trunz

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!chsun!bernina!neptune!trunz
From: trunz@inf.ethz.ch (Paul Martin Trunz)
Subject: TextField Problem
Message-ID: <1993Jan11.101100.26539@neptune.inf.ethz.ch>
Sender: news@neptune.inf.ethz.ch (Mr News)
Nntp-Posting-Host: brain3.inf.ethz.ch
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Mon, 11 Jan 1993 10:11:00 GMT
Lines: 34