Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
makes pointer from integer without cast. Please Help.
I am getting warnings about making a pointer from an integer without a cast.
I am using Xcode 3.2
On Mac OS X 10.6.7
Here is the Code:
//Creating the score image. --- This is what gives the error
ScoreImage *scoreImage = [[ScoreImage alloc] init:XPos :YPos];
ScoreImage.h
//the init method being called
-(id) init : (int) givenX : (int) givenY;
ScoreImage.m
- (id)init : (int) givenX : (int) givenY {
xposition = givenX;
yposition = givenY;
}
The code is simply trying to create a image at the same position as the character that was just destroyed.
XPos and YPos are both ints.
I have similar code doing something else and it doesn't give this error.
So I am very lost as to what is causing it.
Any help would be greatly appreciated.
0 •