Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS5 ARC errors: SKPSMTPMessage
    primarykey
    data
    text
    <p>I'm attempting to incorporate this <a href="http://code.google.com/p/skpsmtpmessage/wiki/GettingStarted" rel="noreferrer">bit of code</a> into a new(iOS 5) project... Problem is, I'm using ARC and it REALLY doesn't like the code as written.</p> <p>I've been able to resolve most of the errors, but I'm stuck with 3 errors I can't seem to figure out.</p> <p><strong>Error #1:</strong></p> <blockquote> <p>Existing ivar 'delegate' for unsafe_unretained property 'delegate' must be _unsafe_unretained</p> </blockquote> <p>.h</p> <pre><code>@interface SKPSMTPMessage : NSObject { NSOutputStream *outputStream; NSInputStream *inputStream; id &lt;SKPSMTPMessageDelegate&gt; delegate; } @property(nonatomic, assign) id &lt;SKPSMTPMessageDelegate&gt; delegate; </code></pre> <p>.m</p> <pre><code>@synthesize login, pass, relayHost, relayPorts, subject, fromEmail, toEmail, parts, requiresAuth, inputString, wantsSecure, \ delegate, connectTimer, connectTimeout, watchdogTimer, validateSSLChain; </code></pre> <p><strong>Errors #2 &amp; #3:</strong></p> <blockquote> <p>Passing address of non-local object to _autoreleasing parameter for write-back</p> </blockquote> <p>.h</p> <pre><code>@interface SKPSMTPMessage : NSObject { NSOutputStream *outputStream; NSInputStream *inputStream; id &lt;SKPSMTPMessageDelegate&gt; delegate; } </code></pre> <p>.m</p> <pre><code>[NSStream getStreamsToHostNamed:relayHost port:relayPort inputStream:&amp;inputStream outputStream:&amp;outputStream]; </code></pre> <p>Any guidance will be greatly appreciated.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload