Re: Getting real file path from installer plugin or script
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=7oz06ZWz+G6KUuenlNtI59Fn72TbXPhs85KomCFWP8E=; b=Gq2l+IQ4FhOWy07ta4Tz3z6hkqZFFqskko7Ly3d/PSBhbiTpkcDRpBEgBWY2NzeSiK 3MTZn8Vt3EeLH1PCBn1wjkJ0nrbY/31aKM4Ur1bKyEJd+o8qNVwZiTRmSzosARPXmATn OghCnjNeHjGX+zXYstPSob087h2R0an0Ol18s= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=qwNSzWc1tLjuBlCyV/vW/LiQ4bOKNMWLJd/kyqCV4AMivNp3KU0vlf5HAcfL2nAw9z WBhaIGRGo9kP7o13CnJeCZDrpiGUZS0N1bTMNujlNFo0NPJsmjWPptpYS8o5oZMA8Unw FGGPdwZF9uIYjkj1JLUBHXgFWsTblcJmrkjxs= On Nov 4, 2008, at 6:33 PM, Neal Sidhwaney wrote: Use at your own risk. --------------------------------- #import <Cocoa/Cocoa.h> #import <InstallerPlugins/InstallerPlugins.h> @interface HowToMakeAnAppleEngineerScream : InstallerPane { } @end #import "HowToMakeAnAppleEngineerScream.h" @interface PageController : NSObject { } - (id)distribution; @end @interface IFDocument : NSObject { } - (id)path; @end @implementation HowToMakeAnAppleEngineerScream @end --------------------------------- _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I was never able to figure this out, unfortunately. If your plugin happens to run after preinstall, the preinstall script is passed some vars indicating where the original package is, and you can forward that to the plugin. - (NSString *)title { return [[NSBundle bundleForClass:[self class]] localizedStringForKey:@"PaneTitle" value:nil table:nil]; } - (void) didEnterPane:(InstallerSectionDirection) inDirection { NSWindow * tWindow; PageController * tPageController; tWindow=[NSApp keyWindow]; // This should be improved IMHO tPageController=(PageController *) [tWindow delegate]; if (tPageController!=nil) { NSLog(@"This is the package path: %@",[[tPageController distribution] path]); } } This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev