Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Mar 7, 2013, 09:53 AM   #1
macrumors newbie
Join Date: Mar 2013
NSView and NSBezierPath - modelling free fall of an object

I'm trying to create a Mac OS X app that will stimulate the free fall of an object thrown at a given speed and and angle. I've created a simple GUI with a custom view in a scroll view (of class ViewController), 2 text fields with number formatters (for the speed and angle) and a button to draw the graph.The button and the text fields are outlets of the ViewController class. My code is here.
If you know a bit of physics, you should know that an object thrown at speed v from an angle a, would follow the parametric equation on the attachment.

The problem is that when I hit the button with a velocity and angle, nothing shows on the view and when I scroll the new point that are created does't match with the given velocity and angle. Although, when the app starts, the view appears well, in green, as set in the code.

Please help me to debug!!
Attached Images
moray95 is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: How do I convert an NSData object to an NSDictionary object, and vice versa? moonman239 iPhone/iPad Programming 6 May 2, 2014 01:17 PM
Free Video Editor with 3D Object Integration? taptic Mac Applications and Mac App Store 0 Jan 22, 2014 09:14 PM
Best free 3d modelling software? taluh Design and Graphics 14 Jul 26, 2013 04:09 PM
[GAME] Guess the object? - Free word quiz game wellplayedsw iPhone and iPod touch Apps 0 Jul 25, 2013 08:25 AM
Adobe announces Photoshop Retina update coming free this fall Stetrain MacBook Pro 5 Aug 30, 2012 10:51 PM

Forum Jump

All times are GMT -5. The time now is 09:33 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC