• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: real newbie question, go easy on me, please ;-)
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread