• 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: launch app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launch app


  • Subject: Re: launch app
  • From: Rhon Fitzwater <email@hidden>
  • Date: Mon, 26 Aug 2002 20:58:01 -0400

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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: launch app
      • From: Rhon Fitzwater <email@hidden>
  • Prev by Date: Re: launch app
  • Next by Date: Re: HotKeys in Cocoa
  • Previous by thread: Re: launch app
  • Next by thread: Re: launch app
  • Index(es):
    • Date
    • Thread