NSArray with plist array?

Discussion in 'iOS Development' started by gojohnnyboi, Aug 8, 2008.

  1. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Ok, I have a property list file that im reading with NSDictionary. I want to have my NSArray be equal to the array for a key in that plist. I tried:

    Code:
    	descriptionArray = [ [ NSArray alloc ] initWithArray: [ [ [ [ NSDictionary alloc ] initWithContentsOfFile: DataPlist ] objectForKey: @"Descriptions" ] arrayValue ] ];
    And arrayValue doesn't exist =p which i just learned.

    Anyone know???

    Thanks!
    -John

Share This Page