• 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: loading in accessors from dictionary item...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loading in accessors from dictionary item...


  • Subject: Re: loading in accessors from dictionary item...
  • From: mmalcolm crawford <email@hidden>
  • Date: Fri, 20 Feb 2004 15:31:43 -0800

On Feb 20, 2004, at 2:28 PM, email@hidden wrote:

[subclass accessor];
the accessors are just strings in the dictionary when i try
[subclass [dict objectForKey:@"accessor"]];
to references the accessor it just says parse error before "objectForKey"

If the accessors are just accessors (no parameters) and the objects in the dictionary are strings, then you can use:

[subclass valueForKey:[dict objectForKey:@"accessor"]];

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >loading in accessors from dictionary item... (From: email@hidden)

  • Prev by Date: List Mom - Re: [Slightly OT] Shareware donation collection
  • Next by Date: Re: styled text to html (mixin' it up)
  • Previous by thread: Re: loading in accessors from dictionary item...
  • Next by thread: Parsing an apache config file
  • Index(es):
    • Date
    • Thread