• 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: Embedding resources in Static Cocoa Library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding resources in Static Cocoa Library


  • Subject: Re: Embedding resources in Static Cocoa Library
  • From: Alexander Bokovikov <email@hidden>
  • Date: Tue, 09 Oct 2012 07:15:53 +0600

On Oct 9, 2012, at 1:00 AM, Simone Tellini wrote:

>
> this is way overkill. You can simply write a simple utility to dump the content of your resource in a C file:
>
> static char foo[] = {
>        0x01, 0x02, 0x03,
> ...
> };
>
> You don't need to use assembly nor to create bogus functions to get the address of foo.

Oops… You haven't caught the idea… Everybody knows how to create a _data_ but I've described, how to _embed_ data into the _code_ segment. This way can be used if it's necessary to hide some data against patching.
This code sample is related to software protection area.

Best regards,
Alexander
_______________________________________________

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: Embedding resources in Static Cocoa Library
      • From: Andres Kievsky <email@hidden>
    • Re: Embedding resources in Static Cocoa Library
      • From: Simone Tellini <email@hidden>
  • Prev by Date: Re: Core Data Multiuser
  • Next by Date: Re: Size limit on .icns files containing 1024x1024 version in 10.5?
  • Previous by thread: Re: Embedding resources in Static Cocoa Library
  • Next by thread: Re: Embedding resources in Static Cocoa Library
  • Index(es):
    • Date
    • Thread