• 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 noify the framework when application closes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to noify the framework when application closes


  • Subject: Re: How to noify the framework when application closes
  • From: Andrew Farmer <email@hidden>
  • Date: Mon, 16 Jan 2006 22:35:24 -0800

On 16 Jan 06, at 19:56, rohit dhamija wrote:
Below are my comments to the asked queries:
1. I have developed the framework using IOKit.framework and CoreServices.framework for communicating with usb devices. So no bundles.

What is it, then? Everything that you're saying suggests that it's a framework, which is a form of bundle...


2. I have exposed some API;s in order to communicate with the user application. For example in my framework i have function like void ReadUSBDevice(int paramFromUser, char *returnbackToUser) . From my app I call this function present in the framework to get the data.

3. For each application access to framework , i save some memory corresponding to that app in the framework.

4.But say i have 100 applications accessing the framework, and now 99 applications are closed, So the memory will still be allocated for all 100 apps, till all the applications gets closed.

Libraries aren't shared that way. Think of it this way: All your framework is, to a client application, is a couple of extra functions. When you allocate memory, it gets allocated in the application's memory space, not in some central dedicated pool for your library.


_______________________________________________
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


References: 
 >How to noify the framework when application closes (From: rohit dhamija <email@hidden>)
 >Re: How to noify the framework when application closes (From: Andrew Farmer <email@hidden>)

  • Prev by Date: How to Get the Color Effect
  • Next by Date: How to Get the Color Effect
  • Previous by thread: Re: How to noify the framework when application closes
  • Next by thread: [Core Data] Improve save performance ?
  • Index(es):
    • Date
    • Thread