A better -description?

  • 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
  • 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
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today