Re: getObjects:andKeys
Re: getObjects:andKeys
- Subject: Re: getObjects:andKeys
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 17 Dec 2008 12:14:03 -0500
On Wed, Dec 17, 2008 at 8:36 AM, Jordon Hirshon <email@hidden> wrote:
> Can someone tell me where I might see an example of this method?
If you don't understand what's going on in this example, I'd suggest
getting a copy of The C Programming Language (2nd Ed.) by Kernighan
and Ritchie.
// warning: written in the compose window.
- (void)example:(NSDictionary *)foo
{
id objects[];
id keys[];
[foo getObjects:&objects andKeys:&keys];
int i;
for(i = 0; i < [foo count]; i++)
NSLog(@"%@ => %@", keys[i], objects[i]);
}
HTH,
--Kyle Sluder
_______________________________________________
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