Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Andrew Pinski <email@hidden>
- Date: Mon, 14 Apr 2003 08:45:19 -0400 (EDT)
- Resent-cc: email@hidden
- Resent-date: Mon, 14 Apr 2003 15:56:19 +0300
- Resent-from: Dan Bernstein <cocoa-dev%email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Georges Engelmann <email@hidden>
Really because of that and because type is undefined.
This really should be:
NSString *appName;
NSString *type;
if(([ws getInfoForFile:@"/Some/Path" application:&appName type:&type] ==
TRUE)
{
NSLog(*type);
if([*type isEqual:@"NSApplicationFileType"])
{
//some action
}
}
Thanks,
Andrew Pinski
Because *type != @"NSApplicationFileType" (they're not the same
object), but maybe
[*type isEqual:@"NSApplicationFileType"]
-- Dan
On Monday, April 14, 2003, at 03:18 PM, Georges Engelmann wrote:
Hi
can anyone tell me why this isnt working? (error 10)
NSString **appName;
NSString **type;
if([ws getInfoForFile:@"/Some/Path" application:appName type:type] ==
TRUE)
{
NSLog(*type);
if(*type == @"NSApplicationFileType")
some action
}
Thanks!
_______________________________________________
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.