RE: Strange problem
RE: Strange problem
- Subject: RE: Strange problem
- From: "Jeff Evans" <email@hidden>
- Date: Wed, 28 Aug 2002 23:58:30 -0500
+ (id)arrayWithObjects:(id)firstObj, ...
Creates and returns an array containing the objects in the argument list.
The argument list is a comma-separated list of objects ending with nil.
so you need [NSArray arrayWithObjects:@"-h", nil]
-Jeff
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Aidas
>
Sent: Wednesday, August 28, 2002 9:41 PM
>
To: email@hidden
>
Subject: Strange problem
>
>
>
Hi all,
>
>
I use external application from my cocoa program but it always
>
crashed when
>
I'm doing so.
>
>
Here is my code:
>
NSTask *uzduotiss=[[NSTask alloc]
>
launchedTaskWithLaunchPath:@"/Library/photopc/photopc" arguments:[NSArray
>
arrayWithObjects:@"-h"]];
>
>
It returns"Trying5.app has exited due to signal 10 (SIGBUS)."
>
>
Why it is happening?
>
>
Thank you
>
_______________________________________________
>
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.
_______________________________________________
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.