• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: getObjects:andKeys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >getObjects:andKeys (From: Jordon Hirshon <email@hidden>)

  • Prev by Date: Re: More - Safari Download Security Alerts
  • Next by Date: NSTimer help
  • Previous by thread: Re: getObjects:andKeys
  • Next by thread: Re: getObjects:andKeys
  • Index(es):
    • Date
    • Thread