• 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
How to use NSWorkspace?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use NSWorkspace?


  • Subject: How to use NSWorkspace?
  • From: John Velman <email@hidden>
  • Date: Sun, 7 Dec 2008 16:07:15 -0800

I'm missing something obvious, but I don't know what.

I want to use NSWorkspace to open an application from a command line
Foundation Tool.

When I try to build the simplest thing, I get

----------

Undefined symbols:
  ".objc_class_name_NSWorkspace", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSWorkspace in LaunchMyMail.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
	  ".objc_class_name_NSWorkspace", referenced from:
	      literal-pointer@__OBJC@__cls_refs@NSWorkspace in LaunchMyMail.o
	ld: symbol(s) not found
	collect2: ld returned 1 exit status

-----------

This happens whatever combination of the following imports I use:
#import <Foundation/Foundation.h>
#import <ApplicationServices/ApplicationServices.h>
#import <cocoa/Cocoa.h>
#import <AppKit/AppKit.h>

This also happens for
  [[NSWorkspace sharedWorkspace] openFile:@"SomeFile" withApplication:@"someApp"];


Examples I find, don't seem to have any problem, but when I copy them onto
my machine, they don't work.


Thanks,

John V.
_______________________________________________

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: How to use NSWorkspace?
      • From: Nathan Day <email@hidden>
    • Re: How to use NSWorkspace?
      • From: Rob Keniger <email@hidden>
    • Re: How to use NSWorkspace?
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: core data, refreshObject, multiple threads
  • Next by Date: Re: How to use NSWorkspace?
  • Previous by thread: Re: Unit Testing Frameworks
  • Next by thread: Re: How to use NSWorkspace?
  • Index(es):
    • Date
    • Thread