🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: The Appkit-Class *Form* does't take *setIntValue:at:* any more under 3.0

#1713
From: Don Yacktman
Date: Fri, 02 Oct 1992 18:21
41 lines
2147 bytes
In article <1992Oct02.163647.20446@infko.uucp>, benz@infko.uni-koblenz.de (Hartmut Benz) writes:
>Hi you gurus out there!

I'm no guru, but I'll take a stab at this...

>I'm absolutely new to NeXT-programming so this question might be really  
>stupid, but ...
>I have a small application running under 2.1 with a Form inside a Window like
>		Field 1 [        ]
>		Field 2 [        ]
>I have a connection 'fields' to this form and used to set values like this:
>		[fileds setIntValue:someValue at:1];
>and everything worked fine until THE UPRGRADE TO 3.0!
>After that (and the rebuilding of the application of course) nothing happens  
>with this fields. Also the documentation on Form tells me not to use this  
>method on it?
>
>Two Questions:
>1.	How do I do it?

I always use tags...

	[[someMatrix cellWithTag:xxx] setIntValue:yyy];
                     ^^^^^--I might not have the method name quite
				right, since I haven't done this for
				a while, but you get the idea.

The tags may be a bit slower, but it has one advantage that I really
like:  the tag numbers can be #defines, and once I tag the cells,
they can be in any order, so I can shuffle around the fields nice
and easy in IB _without_ haveing to recompile.  All I have to do is
change the tag in the .nib file.  The tags always seemed a better way
to go, to me at least.  It's flexible and doesn't hard code to location
in the matrix, which I feel is useful.  (Of course, IB's default lays
out the tags predictably, you you can still code to position if
you don't muck with the tags.)

>2.	Why has this been changed?

I don't know.
Technical Details
Message-ID: <l&#@byu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!rpi!gatech!news.byu.edu!news
References: <1992Oct02.163647.20446@infko.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!rpi!gatech!news.byu.edu!news
From: yackd@utah.et.byu.edu (Don Yacktman)
Newsgroups: comp.sys.next.programmer
Subject: Re: The Appkit-Class *Form* does't take *setIntValue:at:* any more under 3.0
Message-ID: <l&#@byu.edu>
Date: 2 Oct 92 18:21:34 GMT
Article-I.D.: byu.l&#
References: <1992Oct02.163647.20446@infko.uucp>
Distribution: world
Organization: Brigham Young University, Provo UT USA
Lines: 41
Nntp-Posting-Host: utah.et.byu.edu