Releasing objects in Scripting Bridge
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