• 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: How to re-read a bundle once read?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to re-read a bundle once read?


  • Subject: Re: How to re-read a bundle once read?
  • From: "Kyle Sluder" <email@hidden>
  • Date: Mon, 14 Jan 2008 23:08:01 -0500

On Jan 14, 2008 2:20 PM, David Hoerl <email@hidden> wrote:
> I can use [NSBundle bundleWithPath:<somePath>] to get a bundle
> object. Code resources from it get brought in with a "load" method,
> and with Leopard I can now "unload" them.
>
> Is there a way to "close" the bundle? The bundle varies over time,
> and what I'd like to do is read it, load it, unload it, then re-read
> it again.
>
> Thanks,
>
> David

>From a design standpoint, that might not be the best pattern to adopt.
 To be quite honest I've never liked the idea of unloading bundles at
all; it seems like that would be a great way to break fragile
dependencies in code (for example, storing a callback in a struct and
having it disappear from under your feet).  Of course, if you know
you're going to be doing this, then you can explicitly design for it.
Also, where is this bundle coming from, and what is its purpose?  What
about the bundle is changing?

>From a code standpoint, why don't you just unload the bundle and load it again?

--Kyle Sluder
_______________________________________________

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

  • Prev by Date: Re: Has their been a Sketch App Update
  • Next by Date: re: Core Data performance advice... creating relationships.
  • Previous by thread: How to re-read a bundle once read?
  • Next by thread: Tracking rect strangeness in Leopard
  • Index(es):
    • Date
    • Thread