Re: AppleScript: Returning object references in Cocoa
Re: AppleScript: Returning object references in Cocoa
- Subject: Re: AppleScript: Returning object references in Cocoa
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 24 May 2005 16:21:45 -0400
on 2005-05-24 2:41 PM, Fritz Anderson at email@hidden wrote:
> I still have a problem. Here is my objectSpecifier method:
>
> - (NSScriptObjectSpecifier *) objectSpecifier
> {
> id uuid = [model objectForKey: @"UUID"];
> return [[[NSUniqueIDSpecifier alloc]
> initWithContainerClassDescription: nil
>
> containerSpecifier: nil
>
> key: @"entries"
>
> uniqueID: uuid]
> autorelease];
> }
Why are you passing nil to initWithContainerClassDescription:?
Since you pass nil to containerSpecifier:, I assume the object is a child of
the application (the null container). Then you should pass this to
initWithContainerClassDescription: (NSScriptClassDescription *)[NSApp
classDescription].
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden