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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-01-2009, 12:31 AM   #12 (permalink)
dab
New Member
 
Join Date: Apr 2009
Posts: 7
Default

Quote:
Hey I am new to developing now and was reading this post and was wondering where did you define -elejokes-
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.

Quote:
A warning comes up that says my delegate might not respond to "setModelData" what could be the reason for this?
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.

Last edited by dab; 05-01-2009 at 12:38 AM.
dab is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,739
Threads: 89,195
Posts: 380,542
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Realtor Email List
Powered by vBadvanced CMPS v3.1.0

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