• 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
Base-64 decode (was Property List Editor)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Base-64 decode (was Property List Editor)


  • Subject: Base-64 decode (was Property List Editor)
  • From: Graham Jones <email@hidden>
  • Date: Wed, 08 Jun 2005 12:49:19 -0400

Hi Dave,

Thanks again for the quick response.  Boy, you'd think there was an easier
way, like an existing Objective-C method or shell script, given that this is
Apple's standard encoding for data in plist files.

I tried downloading the extensions for the method you found ( Kyla's page at
http://www.cpinternet.com/~em002400/CocoaProgramming.html ) but I am having
trouble getting them to work in my Applescript Studio app.

Do you (or anyone else) know of an easier way to decode Base-64, or how I
can get these to work in AS Studio?

I really appreciate your help.

Many thanks,
Graham Jones.

On 6/8/05 10:48 AM, "Dave" wrote:

> A quick search on Google found this page:
>
> http://www.cocoabuilder.com/archive/message/cocoa/2004/2/10/96667
>
> Here's the base 64 Decode method it has:
>
> + (NSString *)decode:(NSString *)string
> {
>   NSData    *dataObj = [ NSData dataWithBase64EncodedString:string ];
>   NSString    *result = [ [ NSString alloc ] initWithData:dataObj
> encoding:NSASCIIStringEncoding ];
>   // Can use ASCII string encoding here because Base64 is all ASCII
> data.
>
>   return [ result autorelease ];
> }
>
> HTH!
>
> Dave

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Base-64 decode (was Property List Editor)
      • From: Steven Kramer <email@hidden>
References: 
 >Re: Property List Editor displays number differently (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: How do you hide/show a window via bindings?
  • Next by Date: Base-64 decode (was Property List Editor)
  • Previous by thread: Re: Property List Editor displays number differently
  • Next by thread: Re: Base-64 decode (was Property List Editor)
  • Index(es):
    • Date
    • Thread