• 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
release static pointers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

release static pointers


  • Subject: release static pointers
  • From: Christian Giordano <email@hidden>
  • Date: Mon, 26 Jan 2009 10:25:49 +0000

Hi guys, I'm using sqlite3 library and a common technique is to cache
the statement. In some examples I found the statement is set as static
in the model which gets instantiated lazily. I'm wondering if and how
the pointer to the statement will be released. In the code samples I
saw there is no trace of the releasing (in this case,
sqlite3_finalize(statement)).

This is the example:

http://icodeblog.com/wp-content/uploads/2008/08/9-todom.png


I'm new to objective-c and sometimes I wonder if when to use static
pointers or singletons.


Thanks, chr
_______________________________________________

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

  • Follow-Ups:
    • Re: release static pointers
      • From: Peter Blazejewicz <email@hidden>
  • Prev by Date: Does somebody know good tag-editor implementation?
  • Next by Date: Location of the standard Apple icons in IB
  • Previous by thread: Does somebody know good tag-editor implementation?
  • Next by thread: Re: release static pointers
  • Index(es):
    • Date
    • Thread