Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Objective-C, Python, Ruby Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-31-2011, 10:24 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 1
MoleFole is on a distinguished road
Default 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.
MoleFole is offline   Reply With Quote
Reply

Bookmarks

Tags
objective c, warnings, xcode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 492
14 members and 478 guests
AlanFloyd, andyzaharia, AppsBlogger, David-T, HemiMG, iAppDeveloper, imac74, Jaxen66, lovoyl, mutantskin, Paul Slocum, tiendung2992, unicornleo, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,684
Threads: 94,131
Posts: 402,932
Top Poster: BrianSlick (7,990)
Welcome to our newest member, tiendung2992
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0