Re: NSData as value in NSManagedObject
Re: NSData as value in NSManagedObject
- Subject: Re: NSData as value in NSManagedObject
- From: Alexander Spohr <email@hidden>
- Date: Sat, 20 Feb 2010 16:54:06 +0100
Am 20.02.2010 um 16:29 schrieb Mikkel Eide Eriksen:
> NSData *xmlData = (NSData *)[[[treeController selectedObjects] valueForKey:@"xml"] lastObject]; //HERE'S THE PROBLEM
Well, yes.
You ask your xml for lastObject. That won’t work.
What you want is this:
[[[treeController selectedObjects] lastObject] valueForKey:@"xml"]
Ask the array for its lastObject, then get the xml out of it ;)
atze
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden