• 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
Releasing objects in Scripting Bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Releasing objects in Scripting Bridge


  • Subject: Releasing objects in Scripting Bridge
  • From: Reza Farhad <email@hidden>
  • Date: Sat, 14 Mar 2009 01:14:49 +0000


Exploring the example of sending emails using Scripting Bridge, I see that objects are allocated but not released:


MailOutgoingMessage *emailMessage = [[[mail classForScriptingClass:@"outgoing message"] alloc] initWithProperties:
[NSDictionary dictionaryWithObjectsAndKeys:@"testing sending mail", @"subject",messageString, @"content", nil]];


this is where the object is created with an alloc, but it is not released later. This also occurs in other parts of the code. Is this a mistake or is this not necessary when calling through to the scripts to other applications.

Thanks again

Reza







_______________________________________________

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


  • Prev by Date: Re: kvc/kvo for arrays defeated me.
  • Next by Date: Re: kvc/kvo for arrays defeated me.
  • Previous by thread: sending rich text emails using Scripting Bridge and Mail
  • Next by thread: NSTask and setuid
  • Index(es):
    • Date
    • Thread