Re: Preference panes and Apple Help
Re: Preference panes and Apple Help
- Subject: Re: Preference panes and Apple Help
- From: Matt Neuburg <email@hidden>
- Date: Thu, 04 Sep 2008 07:43:56 -0700
- Thread-topic: Preference panes and Apple Help
On Wed, 03 Sep 2008 09:27:05 +1000, Andrew White <email@hidden>
said:
>PS: I couldn't see any call to deallocate a FSRef. Does it get correctly
>cleaned up as part of normal stack cleanup?
>
Andrew: Yes. :) Look in Files.h. Despite the "Ref" ending on the name
(legacy), an FSRef is not a pointer; it's just a struct. Objective-C is C.
Therefore this is an ordinary local variable; the 80 bytes on the stack are
cleaned up when the variable goes out of scope. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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