Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Releasing memory try-catch block statement in Objective-C
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xstep" data-source="post: 862173" data-attributes="member: 11647"><p>I think you want to read "Exception Handling and Memory Management" in Apple's <a href="http://developer.apple.com/documentation/Cocoa/Conceptual/Exceptions/Tasks/HandlingExceptions.html" target="_blank">Handling Exceptions</a> document.</p><p></p><p></p><p></p><p>From the little you've posted, I have to wonder if your try block is contrived. Since you could just test the object for the method (selector), via the respondsToSelector: method.</p><p></p><p>Oh. The docs say it should be [pool drain]; not [pool drains];.</p></blockquote><p></p>
[QUOTE="xstep, post: 862173, member: 11647"] I think you want to read "Exception Handling and Memory Management" in Apple's [URL="http://developer.apple.com/documentation/Cocoa/Conceptual/Exceptions/Tasks/HandlingExceptions.html"]Handling Exceptions[/URL] document. From the little you've posted, I have to wonder if your try block is contrived. Since you could just test the object for the method (selector), via the respondsToSelector: method. Oh. The docs say it should be [pool drain]; not [pool drains];. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Releasing memory try-catch block statement in Objective-C
Top