Re: launch app
Re: launch app
- Subject: Re: launch app
- From: Rhon Fitzwater <email@hidden>
- Date: Tue, 27 Aug 2002 08:47:36 -0400
Below is the code i need to add to LogOutSaver.m. How and where do i
add it. Thanks.
[[NSWorkspace sharedWorkspace]
launchApplication:@"/Applications/Utilities/ProcessViewer.app"];
Ok, so now I no the code I need, but now I need to know where to add it
to the code i already have from the screen saver template. here the
code:
//
// LogOutSaverView.m
// LogOutSaver
//
// Created by Rhon Fitzwater on Mon Aug 26 2002.
// Copyright (c) 2002, __MyCompanyName__. All rights reserved.
//
#import "LogOutSaverView.h"
@implementation LogOutSaverView
- (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
{
self = [super initWithFrame:frame isPreview:isPreview];
if (self) {
[self setAnimationTimeInterval:1/30.0];
}
return self;
}
- (void)startAnimation
{
[super startAnimation];
}
- (void)stopAnimation
{
[super stopAnimation];
}
- (void)drawRect:(NSRect)rect
{
[super drawRect:rect];
}
- (void)animateOneFrame
{
return;
}
- (BOOL)hasConfigureSheet
{
return NO;
}
- (NSWindow*)configureSheet
{
return nil;
}
@end
Where in that code would I add the code below so that when the screen
saver activates process viewer for example opens up. Thanks in advance
for the help.
-Rhon
On Monday, August 26, 2002, at 08:22 PM, Jeff Hunter wrote:
On 8/26/02 8:13 PM, "Rhon Fitzwater" <email@hidden> wrote:
i need to add to that code, the code to open an application in
/Application/Utilities
[[NSWorkspace sharedWorkspace]
launchApplication:@"/Applications/Utilities/ProcessViewer.app"];
etc.
--
Jeff Hunter
email@hidden
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.