Re: "Open dialogue"-like file system browser
Re: "Open dialogue"-like file system browser
- Subject: Re: "Open dialogue"-like file system browser
- From: David Zentgraf <email@hidden>
- Date: Thu, 19 Jan 2006 19:17:46 +0100
Sure did, but my problem is a more basic one: I've got no real idea
about the required syntax or objects I need to create in order to
make a Carbon call.
That what I want to use:
OSStatus LSCopyItemInfoForRef (const FSRef *inItemRef,
LSRequestedInfo inWhichInfo, LSItemInfoRecord *outItemInfo)
inWhichInfo should be kLSRequestBasicFlagsOnly. But the rest...?
Can you help me out with some specific code? I got the path I want to
query in [FSNodeInfo absolutePath].
Chrs,
Dav
On 2006/01/19, at 16:40, John Stiles wrote:
Did you #include <Carbon/Carbon.h> and add the framework to your
project?
That should be all you need to do.
David Zentgraf wrote:
Alright, I'd be glad to use this, looks good. But, *blush*, I
can't for the hell of me figure out how to call these functions
from within my Cocoa app. I've understood the whole Cocoa concept
pretty quick with the official Cocoa Tutorial, but I seem to be
missing something like that for Carbon.
Any concrete help, please?
Thanks, Chrs,
Dav
On 2006/01/18, at 20:09, glenn andreas wrote:
On Jan 18, 2006, at 11:54 AM, David Zentgraf wrote:
Okay, I found what I need, but I have no idea how to use it. I'm
finding my way around Cocoa by now, but Carbon is a closed book
to me. The Carbon Finder Reference states these constants can be
used:
kIsInvisible = 0x4000,
If you're requiring 10.4, you'll be much better off using
LaunchServices. Namely LSCopyItemAttribute with the attribute
kLSItemIsInvisible, which will determine if the file item should
be visible. It will handle all the various ways that a file can
be "not shown". Otherwise you're going to have figure out all
the various ways that items are not shown (invisible bit set,
begins with period, is included in the list of ".hidden"
directories, etc...)
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | build, mutate, evolve | images, textures, backgrounds,
art
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden