Subscribe ( )

iPhone Programming Tutorials

 

Forum

You must be logged in to post Login Register

Search 

Learning Objective C: Why Doesn’t This Work?

User Post

8:17 pm
October 23, 2008


macsilvr

Noob

posts 1

1

I'm trying to learn Objective C so that I can program for the iPhone. I've been working through Programming In Obective C (Stephan Kochan) and have experimented with making a Point class. However, I can't figure out why this doesn't work if x & y (Point's only instance variables) don't function properly if they are floats, whereas they work fine if they are ints.


Here is the code I wrote mushed into one file (for ease of uploading):


Any help is greatly appreciated!


About the iCodeBlog forum

Currently Online:

5 Guests

Maximum Online: 19

Forums:

Groups: 2

Forums: 6

Topics: 156

Posts: 503

Members:

There are 268 members

There are 1 guests


Brandon has made 81 posts

Top Posters:

bobcubsfan - 48

crazyiez - 30

Uhu - 17

VertigoSol - 17

Nick - 15

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)  

Share and Enjoy: