• 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: KVC - how to get properties into a common form?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVC - how to get properties into a common form?


  • Subject: Re: KVC - how to get properties into a common form?
  • From: Matt Gough <email@hidden>
  • Date: Thu, 3 Apr 2008 14:19:44 +0200


On 3 Apr 2008, at 13:29, Graham Cox wrote:
Using -valueForKeyPath, returning an id.

Is there an easy way to convert whatever <id> is into a common form (a string, in my case), or do I have to have a huge switch statement that checks the class and calls different code for each kind to convert to a string? (or similar, like an NSObject category that implements -stringValue, overridden for every class). Just wondering if there's something built-in that will do this already.


There is -description, but that probably isn't what you want.

Matt
_______________________________________________

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


  • Follow-Ups:
    • Re: KVC - how to get properties into a common form?
      • From: Jens Alfke <email@hidden>
References: 
 >KVC - how to get properties into a common form? (From: Graham Cox <email@hidden>)

  • Prev by Date: KVC - how to get properties into a common form?
  • Next by Date: Propagate changes/insertions in main context
  • Previous by thread: KVC - how to get properties into a common form?
  • Next by thread: Re: KVC - how to get properties into a common form?
  • Index(es):
    • Date
    • Thread