Re: A better -description?
Re: A better -description?
- Subject: Re: A better -description?
- From: John Stiles <email@hidden>
- Date: Sun, 16 Dec 2007 07:42:12 -0800
I don't think there's a way to get ObjC code.
All of those types can be added into an NSDictionary, and then the
NSDictionary can be written to a file in ASCII format. This gives you
a string representation that is fairly human-readable and can be
converted immediately back into an identical ObjC object.
On Dec 16, 2007, at 3:06 AM, has wrote:
Hi all,
I'm wondering if there's an existing way to get a string
representation of common Cocoa types (NSNumber, NSString, NSArray,
NSDictionary, etc.) that represents the equivalent ObjC source
code, rather than the pseudocode-ish format used by the standard -
description method?
Thanks,
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
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:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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