Potential leak of an object allocated on line 86 and stored into 'newPossession'
1.Method returns an Objective-C object with a +1 retain count (owning reference)
2.Object returned to caller as an owning reference (single retain count transferred to caller)
3.Object allocated on line 86 and stored into 'newPossession' is returned from a method whose name ('randomPossession') does not contain 'copy' or otherwise starts with 'new' or 'alloc'. This violates the naming convention rules given in the Memory Management Guide for Cocoa (object leaked)
2011-08-02 12:48:52.475 RandomPossessions[1017:707] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 10 beyond bounds [0 .. 9]'
Analyzeのときに、下記のワーニングができれば、
/Users/iwinstar/program/C-R/learn/Downloader/Downloader/DownloadViewController.m:116: warning: 'DownloadViewController' may not respond to '-newFilePathWithURL:'
file://localhost/Users/iwinstar/program/C-R/learn/Downloader/Downloader/DownloadViewController.m: warning: Semantic Issue: Method '-newFilePathWithURL:' not found (return type defaults to 'id')
[newFilePathWithURL]のメメッドがヘッダファイルには宣言していないということです。
/Users/iwinstar/program/C-R/learn/Downloader/Downloader/DownloadViewController.m:116: warning: 'DownloadViewController' may not respond to '-newFilePathWithURL:'
file://localhost/Users/iwinstar/program/C-R/learn/Downloader/Downloader/DownloadViewController.m: warning: Semantic Issue: Method '-newFilePathWithURL:' not found (return type defaults to 'id')
[newFilePathWithURL]のメメッドがヘッダファイルには宣言していないということです。