• 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
Re: Odd crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd crash


  • Subject: Re: Odd crash
  • From: has <email@hidden>
  • Date: Wed, 4 Mar 2009 19:27:27 +0000

Reza Farhad wrote:

Paul

I switched on Guard Malloc from the Run Menu in Xcode

It appears that I am getting the crash for a call that is trying to
load an AppleScript.

	NSDictionary 	*errors = [ NSDictionary dictionary ];
	NSAppleScript 	*script = [[ NSAppleScript alloc ]
initWithContentsOfURL:url error:&errors ];


One point, which may or may not be related: as with **NSError arguments, you do not need to allocate an NSDictionary instance yourself. If there is an error to report, initWithContentsOfURL:error: will create it for you.

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________

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


  • Follow-Ups:
    • Odd crash-loading AppleScripts
      • From: Reza Farhad <email@hidden>
  • Prev by Date: Re: Changing NSTableView cell immediately before editing [solved?]
  • Next by Date: Re: binding to number of selected rows in a table
  • Previous by thread: Re: Odd crash
  • Next by thread: Odd crash-loading AppleScripts
  • Index(es):
    • Date
    • Thread