• 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: Tiger Intel AS Studio, eSellerate Integrated to Embedded transition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tiger Intel AS Studio, eSellerate Integrated to Embedded transition


  • Subject: Re: Tiger Intel AS Studio, eSellerate Integrated to Embedded transition
  • From: Graham Jones <email@hidden>
  • Date: Wed, 05 Apr 2006 00:37:03 -0400

Hi Conor,

Thanks for your reply.  I guess this takes me off the topic of Cocoa-Dev
now...  I'll post a variation of this on the Applescript Studio list.

I am having trouble figuring out how to call the eSellerate functions from
AppleScript Studio, when I can not target an instantiated object anymore.

Following the "Multi-Language" example in the Developer Tools, I am able to
add the following category to the AppController.h header:

@interface NSApplication (myTestInAppController)
- (void)testFunction;
@end

And then I add the following to AppController.m:

@implementation NSApplication (myTestInAppController)
- (void)testFunction {
NSRunAlertPanel(@"TEST FUNCTION", @"", @"Ok", nil, nil);
}
@end

I can then Call Method "testFunction" from my app's main script and it
triggers a dialog.  However, if I declare the exact same test function
within the "AppController" interface, it does nothing.

Do you know what I am doing wrong, and/or how I might be able to fix this
and access the eSellerate functions via "Call Method" in my scipt?

Many thanks,
Graham Jones.

> Hi Graham,
>
> There is no init for the new embedded web store use the following to install
> the engine:
>
>   NSString *pathToEngine = [[NSBundle mainBundle]
> pathForResource:@"EWSMacCompress.tar.gz" ofType:nil];
>   OSStatus error =  eWeb_InstallEngineFromPath([pathToEngine UTF8String]);
>
>   if ( error < E_SUCCESS) {
>      NSLog(@"Esellerate engine install failed with code: %d",
> engineStatus);
>      return nil;
>   }
>
>
> Then send calls with the functions like this example:
>
> OSStatus validSN = eWeb_ActivateSerialNumber ([publisherID UTF8String],
> [activationID UTF8String], [key UTF8String], 1);
>
> As you can tell from the example they are not methods any more. (your not
> sending a message to an object your using a function now.) There is no class
> to instantiate with init as the old integrated seller.
>
> Regards,
> Conor.
> http://www.bruji.com/

 _______________________________________________
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

  • Prev by Date: Re: Array operators
  • Next by Date: Problem with NSNumberFormatterCurrencyStyle on table cell
  • Previous by thread: Re: PDFView
  • Next by thread: Problem with NSNumberFormatterCurrencyStyle on table cell
  • Index(es):
    • Date
    • Thread