• 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: Updating within a prebuilt Bundle app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating within a prebuilt Bundle app?


  • Subject: Re: Updating within a prebuilt Bundle app?
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 6 May 2004 21:52:13 -0700

On May 6, 2004, at 7:28 PM, Mark Grob wrote:

> Is there an app out that will let me update the resources in a  bundle
> app? or a script example to replace/update the bundle app?
>
> Example:
> myapp.app/.context/resources/1.jpg
>
> replace with:
> myapp.app/context/resources/2.jpg

First, I assume you mean myapp.app/Contents/Resources/n.jpg (context,
with a dot or not, is not a standard bundle directory, and because some
file systems are case-sensitive Contents and Resources must be
capitalized)

The first answer is that no, you can't do what you ask, because the app
will break.  The application is coded to look for 1.jpg.  It will never
look for 2.jpg unless you have the source to the app and recompile it,
or edit its nib file with Interface Builder.

But if you want to replace the data in 1.jpg with different data, to
make the app show a different picture, that's extremely
straightforward:

1) In the Finder, command-click on the app and choose Show Package
Contents
2) Navigate to the Resources folder
3) Drag 1.jpg to the trash
4) Drag 2.jpg into the Resources folder
5) Rename 2.jpg to be 1.jpg

Similarly, if you gave 2.jpg on your desktop and you want to use the
command line, just

mv ~/Desktop/2.jpg myapp.app/Contents/Resources/1.jpg

will do it, given that you have sufficient permissions.

Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Updating within a prebuilt Bundle app?
      • From: Mark Grob <email@hidden>
References: 
 >Fwd: Question about weak linking? (From: Trenton Schulz <email@hidden>)
 >Re: Question about weak linking? (From: Glen Low <email@hidden>)
 >Updating within a prebuilt Bundle app? (From: Mark Grob <email@hidden>)

  • Prev by Date: Specifying a relative path for executable runtime
  • Next by Date: Re: Merging dylibs into executables
  • Previous by thread: Updating within a prebuilt Bundle app?
  • Next by thread: Re: Updating within a prebuilt Bundle app?
  • Index(es):
    • Date
    • Thread