Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > FSEventStreamStop; how important

FSEventStreamStop; how important
Thread Tools
Dedicated MacNNer
Join Date: Apr 2004
Status: Offline
Reply With Quote
Nov 12, 2010, 05:58 PM
 
In short, the question is how important is it for me to call FSEventStreamStop (and similar followups) if it's just a cleanup thing as the app is quitting?

the long explanation:
I'm working on an app where a class of objects are correlated to a set of files in the filesystem; basically, for each file that's present in a particular location, I create one instance of the class. What I'd like to set up is so that I can do somethings like
[myclass instanceNamed:aname];
The thought was that the easiest way to do this would be to have the class (not one of its instances) maintain a list of the possible objects that can be returned, along with using fsevents to keep that list up to date. Starting fsevents can then easily be done either in +initialize, or the first time that +instanceNamed: is invoked. But there isn't a deallocation equivalent of +initialize as far as I know, so I can't think how I'd run cleanup code that's associated with the class rather than with one of its instances. Thus the question, does it matter if I cleanup the FSEventsStream before the app quits? (alternatively, if someone knows how to write cleanup code for the class...).
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:56 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2