Note that there are some explanatory texts on larger screens.

plurals
  1. POiphone Pass String to another .m file in project
    primarykey
    data
    text
    <p>ViewController.m will assemble the body of an email as the user pushes buttons and types in textviews. The program that reads the email asks that it is in XML. The final message will look like this:</p> <pre><code>NSString *sendMessage = [[NSString alloc]initWithFormat:@"&lt;?xml version = \"1.0\" ?&gt;\n&lt;?commitcrmxml version = \"1.0\" ?&gt;\n&lt;CommitCRMTransaction&gt;\n&lt;ExternalApplicationName&gt;Myapp&lt;/ExternalApplicationName&gt;\n&lt;SendResponseToEmail&gt;err@mysite.com&lt;/SendResponseToEmail&gt;\n&lt;Password&gt;pass&lt;/Password&gt;\n&lt;ReturnTransactionID&gt;CRDOWV34HL53J543GENDYDH92BSF&lt;/ReturnTransactionID&gt;\n&lt;DataKind&gt;TICKET&lt;/DataKind&gt;\n&lt;RecordData&gt;\n&lt;FLDTKTCARDID&gt;%@&lt;/FLDTKTCARDID&gt;\n&lt;FLDTKTPROBLEM&gt;%@\n%@\n%@\n%@\n%@\n%@&lt;/FLDTKTPROBLEM&gt;\n&lt;FLDTKTSTATUS&gt;100&lt;/FLDTKTSTATUS&gt;\n&lt;FLDTKTKIND&gt;General&lt;/FLDTKTKIND&gt;\n&lt;FLDTKTPRIORITY&gt;10&lt;/FLDTKTPRIORITY&gt;\n&lt;FLDTKTSOURCE&gt;Myapp&lt;/FLDTKTSOURCE&gt;\n&lt;FLDTKTSCHEDLENESTIM&gt;60&lt;/FLDTKTSCHEDLENESTIM&gt;\n&lt;FLDTKTFORDISPATCH&gt;N&lt;/FLDTKTFORDISPATCH&gt;\n&lt;/RecordData&gt;\n&lt;/CommitCRMTransaction&gt;", cardID, tempStoreCompany, tempStoreLocation, tempStoreName, tempStorePhone, tempStoreEmail, descriptionMessage]; </code></pre> <p>My second implementation file, MailSend.m, Is going to send the message using (SKP)SMTP. MailSend.m needs access to the text in the sendMessage string (in ViewController.m) so that the message may be sent properly. </p> <p>How can I do this?</p>
    singulars
    1. This table or related slice is empty.
    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.
    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