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

Re: running an external app


  • Subject: Re: running an external app
  • From: Michaël Villar <email@hidden>
  • Date: Tue, 27 May 2008 01:13:01 +0200

Hum... runApp is a bool type variable.

launchApplication is a method from the NSWorkspace class.
This code would work (not tested)

NSWorkspace* workspace = [NSWorkspace sharedWorkspace];
[workspace launchApplication:@"Your application"];

Define a string is with @"Your string", not "Your string".

I think you should read some guide to begin with Objective-C.

Le 27 mai 08 à 01:08, Nathan a écrit :

I'm running into problems now....
bool runApp;
[runApp launchApplication: "Interface Builder"];

I get these warnings:

warning: invalid receiver type bool
warning: passing argument 1 of 'launchApplication:' from incompatible pointer type


On May 26, 2008, at 6:50 PM, Jens Alfke wrote:


On 26 May '08, at 3:48 PM, Nathan wrote:

I'm still a beginner but I'm making a calculator designed for programmers, both for experience and because I think it will be useful and I want to give users the option of running xcode and or IB when my calculator is launched, or vice versa but I can't figure out how to do this, I've looked through the documentation. Can anyone help?

-[NSWorkspace launchApplication:].

—Jens

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: running an external app
      • From: Nathan <email@hidden>
References: 
 >running an external app (From: Nathan <email@hidden>)
 >Re: running an external app (From: Jens Alfke <email@hidden>)
 >Re: running an external app (From: Nathan <email@hidden>)

  • Prev by Date: Re: running an external app
  • Next by Date: Re: running an external app
  • Previous by thread: calculator design (was Re: running an external app)
  • Next by thread: Re: running an external app
  • Index(es):
    • Date
    • Thread