I come from the AppleScript land and there we use
alias of (info for thePath)
package folder of (info for thePath)
folder of (info for thePath)
to see if a path is either of the above. But I can't seem to find out how to do it in ObjC/Cocoa. I'm pretty sure it's quite easy but I fail to find any info about it.
Thanks...