• 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: Resource Image vs Image File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resource Image vs Image File


  • Subject: Re: Resource Image vs Image File
  • From: David Duncan <email@hidden>
  • Date: Mon, 14 May 2007 16:01:37 -0700

On May 14, 2007, at 2:58 PM, Chris Outwin wrote:

I am writing an image editing app which seems to require a divergence from what the docs recommend about placing required resources in resource files. I've read for days, but haven't found the answer. Would you please offer some advice based upon these requirements:

The app requires OS 10.4;
There are hundreds of editable images in a 100 MB library. The application requires the files;
The user can copy an image, edit it and save it individually. The saved image is immediately displayed in a NSTableView for use in future sessions;
The app uses Core Data. Images are not store as object data. Rather, objects reference images by a fileName attribute.


Isn't it wasteful to have the nib load the entire 100 MB image library when only some of the images will be edited in a session?
To me, these requirements suggest an image folder which would exist in /Library/Application Support/(app name) or ~/(etc). Am I wrong?
Can a user save an edited image back to the nib's memory? I can't find any docs about this?

I think your misinterpreting the documentation. Where it says to place required resources in resource files, it means to place them as individual files in MyApp.app/Contents/Resources/ (or a localized subfolder).


A simple rule to implementing something like this might be to have a Contents/Resources/ImageLibrary/ folder that stores the pristine factory copies of the images, and then use [~]/Library/Application Support/(app name)/ to store modified images. At startup you scan both locations for image files to use.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Resource Image vs Image File (From: Chris Outwin <email@hidden>)

  • Prev by Date: Re: Focus ring not displaying while editing custom split NSCell
  • Next by Date: export movie to avi using qtkit
  • Previous by thread: Resource Image vs Image File
  • Next by thread: Re: Resource Image vs Image File
  • Index(es):
    • Date
    • Thread