Trigonometric Problem, Particularly tan() Function

2008-07-12 Thread Patrick Walker
For some reason, using standard trigonometric functions are not behaving as they should once you hit 90 degrees. I'm not importing another framework/library and assuming the ones I'm calling are the same ones found in the standby "math.h". The functions return correct values until you rea

Re: Trigonometric Problem, Particularly tan() Function

2008-07-12 Thread Patrick Walker
sure, you are aware those functions from math.h take arguments in radians, and not degrees, right? -- ivan On Jul 13, 2008, at 12:30 AM, Patrick Walker wrote: For some reason, using standard trigonometric functions are not behaving as they should once you hit 90 degrees. I'm not impo

Re: Trigonometric Problem, Particularly tan() Function

2008-07-13 Thread Patrick Walker
877334 itself. To me, that appears to be a rather strange value for a floating point number, esp. when cos(pi/2) is returning near-zero (an "e-08") number as well. Thanks for the replies. On 13-Jul-08, at 2:06 AM, Jens Alfke wrote: On 12 Jul '08, at 9:43 PM, Patrick Walk

NSConnection/proxy Issue (simplifed version)

2008-07-18 Thread Patrick Walker
Simple question that may or may not be programming related. I'm a mechanical engineering student so I'm trying to be as clear as I can here. This list entry may be a duplicate as the first attempt exceeded 25k in size. It seems NSConnection will return a proxy object but only when both

NSConnection Issue

2008-07-22 Thread Patrick Walker
I was wondering if anyone had any solutions to determine whether or not an NSConnection via NSSocketPorts are still valid without each end polling to see if it still connects? Right now, if the client tries to access the rootObject it hangs. While this may may only happen occasionally, I

Bizarre Xcode Behaviour

2008-07-28 Thread Patrick Walker
I've been working on an item and it worked all fine and dandy. Knowing things would soon go awry, I took a snapshot. I did a build after making an addition of another NSTextField label. Suddenly, each time the program was built or launched, I would get this: 2008-07-28 18:15:31.039 Server

Irritating Problem with NSString Method and File Paths

2008-08-03 Thread Patrick Walker
It seems that whenever I use Xcode to spawn the program, it is able to find the file but when spawning the program from Finder, it can never, ever find the file. I've been looking online and no one seems to have come across this before or maybe it's because it's so late that I'm not seeing