Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-02-2009, 08:06 PM   #13 (permalink)
appleman
Registered Member
 
Join Date: Feb 2009
Posts: 107
Default

Quote:
Originally Posted by dab View Post
NSMutableArray *elejokes = [jokes valueForKey:@"elejokes"];
defined elejokes. i was having a problem with it because I capitalized the J there, it should have been lower case like the others.



Its kind of weird, I get that same thing in the same place sometimes (i have no idea why) but it has never prevented the app from running or crashed it or anything like that. so I just ignore it, if you have everything else fixed you should be fine.

EDIT read this-
actually i think you might have something different with the warning, make sure that its like this

fileContents = [[NSBundle mainBundle] pathForResource:@"y" ofType:@"plist"];
NSDictionary *y = [[NSDictionary alloc] initWithContentsOfFile:fileContents];
NSMutableArray *x = [y valueForKey:@"x"];

int randomNumber = arc4random() % [x count];
x = [x objectAtIndex:randomNumber];
[appDelegate setModelData:x];
}

with y as the name of the plist
and x as the name of the array.
if you make sure it is just like this with x and y replaced it SHOULD NOT have a warning.
Ok maybe you can tell me what is going on all I did was add everything hear to my application. Whenever I run my application in 2.2.1 and I click on a table row that when touched goes to the second view the app crashes. But when I run the app in 3.0 the app does not crash when I perform the action described above. I think there might be an error because my second view is populated from the app delegate. But if this is the problem then why would it work in 3.0 and not 2.2.1 any ideas?
appleman is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 23,920
Threads: 38,707
Posts: 169,887
Top Poster: smasher (2,554)
Welcome to our newest member, neelkamalgarg
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:33 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.