views:

26

answers:

1

Hello...

I've build an XML Parse in Objective-C like in this tutorial: http://www.iphonesdkarticles.com/2008/11/parsing-xml-files.html

I am new to Objective-C and the message objectForKey throws an NSException but i don't know whay.

aPicture = [[Picture alloc] init];

aPicture.pictureID = [[attributeDict objectForKey:@"id"] integerValue];

Here is the message of the exception that i don"t understand:

2010-08-09 21:27:32.223 rh[6375:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Picture setPictureID:]: unrecognized selector sent to instance 0x592e0b0'

thank you, moritz

A: 

After a long search i got my mistake... I have forgotton to synthezise the pictureID selector.

....

Moritz
"A long search" being "2 minutes after I posted my question"? ;)
Dave DeLong
yeah but i search a half hour before i posted it ^^
Moritz