RE: EINVAL error from NSWorkspace launchApplication in 10.2
RE: EINVAL error from NSWorkspace launchApplication in 10.2
- Subject: RE: EINVAL error from NSWorkspace launchApplication in 10.2
- From: Chris Logsdon <email@hidden>
- Date: Thu, 17 Apr 2003 13:40:37 -0700
Hi Shannon,
I am now seeing the EINVAL error myself when launching a Cocoa app I am
working on.
I was wondering if you found out the cause of the error and maybe the
solution.
This app will only run under 10.2+.
Best,
Chris D. Logsdon
Senior Software Engineer
CharisMac(tm) Engineering, Inc.
email@hidden
On Wed, 11 Dec 2002 16:15:54 -0700, Shannon Goodman wrote:
----------------------------------------------------------------------------
--------------------------------
Hello all,
I am just starting in on doing some Cocoa developing for the first time and
have stumped myself.
I am launcing an application and am putting some error checking in place.
The problem I have discovered is that when I go to use:
[[NSWorkspace sharedWorkspace] launchApplication:incorrectAppPath];
for an application that I know cannot be found at that particulr path the
launchApplication method is still returning 'YES' even though the app has
not been successfully launched and is not already running. I get this error
in Console:
ERROR! execle(/my/incorrect/path/noApp.app) returned, err=22
(EINVAL error, indicating an invalid argument)
Odder yet is if I put the App back in the correct path and then use
launchApplication I still get true if I do the check:
if(errno == 22)
When I try the above in OS 10.1 none of this happens. I get a return value
of 'NO' from launchApplication and no EINVAL errors, this only happens in
10.2.
I did some digging in you archives and found this mentioned once but no
explanations or work-arounds. I was hoping someone might know some new info.
Thanks in advance!
Shannon Goodman
Software Developer
SMART Technologies Inc.
Tel: 403.802.2427
mailto:email@hidden
Visit the SMART Web site:
http://www.smarttech.com
Bringing people and ideas together.(tm)
>
--__--__--
>
>
_______________________________________________
>
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.
>
>
>
End of cocoa-dev Digest
_______________________________________________
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.