• 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: What to do?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What to do?


  • Subject: Re: What to do?
  • From: Lukasz Kuczborski <email@hidden>
  • Date: Fri, 22 Feb 2002 17:03:33 +0100

so why this doesn't work?

if([[NSWorkspace sharedWorkspace] getInfoForFile:pname application:nil
type:nil] == NSPlainFileType)

>
> NSString *path = @"/Applications/OmniWeb.app";
>
> if ( [[ NSWorkspace sharedWorkspace ] isFilePackageAtPath: path ] == YES )
> {
> /* path is package, don't treat it like a directory */
> } else { /* -isFilePackageAtPath returned NO */
> /* path isn't package, isn't a folder, or doesn't exist */
> }
>
> On Fri, 22 Feb 2002, Lukasz Kuczborski wrote:
>
>> I also found something like this:
>>
>> isFilePackageAtPath:
>>
>> - (BOOL)isFilePackageAtPath:(NSString *)fullPath
>>
>> Determines whether fullPath is a file package.Returns NO if fullPath does
>> not exist, or is not a directory.
>>
>>
>> But i don't know how to implement it onto my code...caan u help me..i have
>> problems with (BOOL) methods...i don't know how to call it!
>> ;)
>> TIA
>>>>
>>>> while(pname = [direnum nextObject])
>>>> {
>>>> if(isFile) // <- What should i insert here, so it would work????
>>>
>>> Look at NSWorkspace's getInfoForFile:application:type:. Call it, and if
>>> the constant it returns is NSPlainFileType, load it into your table.
>>>
>>> andrew
_______________________________________________
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: Re: What to do?
  • Next by Date: Programming NSImageView
  • Previous by thread: Re: What to do?
  • Next by thread: incompatible pointer type (was: Please help?...
  • Index(es):
    • Date
    • Thread