• 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: AppleScript: Returning object references in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: AppleScript: Returning object references in Cocoa
      • From: Fritz Anderson <email@hidden>
References: 
 >Re: AppleScript: Returning object references in Cocoa (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Suppress "Bring All to Front" menu item in Window menu?
  • Next by Date: NSTreeController / CoreData quesiton
  • Previous by thread: Re: AppleScript: Returning object references in Cocoa
  • Next by thread: Re: AppleScript: Returning object references in Cocoa
  • Index(es):
    • Date
    • Thread