• 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: Bookmark alias files v. Finder alias files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bookmark alias files v. Finder alias files


  • Subject: Re: Bookmark alias files v. Finder alias files
  • From: Michael Hall <email@hidden>
  • Date: Sat, 14 Apr 2012 05:24:38 -0500

On Apr 14, 2012, at 5:05 AM, Ken Thomases wrote:

> You can also access the resource fork as a file by appending "/..namedfork/rsrc" to the path.

Ken beat me to it after I found this...
Work with resource forks in the Terminal
http://hints.macworld.com/article.php?story=2002022409532098

Ken could very well be right that it is using the resource fork in one instance and not the other.

I think for file alias's it actually stuck a 'alis' AppleEvent in the resource fork?
For example from http://en.wikipedia.org/wiki/Resource_fork

Name of resource type (actual name)	Description
alis (alias)	                                                Stores an alias to another file, in a resource fork of a file whose "alias" attribute bit is set

One thing I was wondering about was that I remembered working on this code for open document handling...

    if ( dirObjType == typeAlias) {		// 'alis' ) {    // open one file

      } else if ( dirObjType == typeAEList) {		// 'list' ) { // open many files
        aliasHandle = (AliasHandle)NewHandle( 0L ); // get a real Handle; we'll resize as needed.
        if ( NULL != aliasHandle ) {
            int numItems = [dirObj numberOfItems];
            docs = [[NSMutableArray alloc] initWithCapacity:numItems];
            for ( i = 1; i <= numItems; i++ ) {
                NSAppleEventDescriptor *thisAlias = [dirObj descriptorAtIndex:i];
 				if ([thisAlias descriptorType] != typeAlias) 			// 10.6 bmrk?
					thisAlias = [thisAlias coerceToDescriptorType:typeAlias];

At 10.6 I found that multiple open files started using the bmrk AppleEvent type that I coerced to typeAlias 'alis'.
while a single file still used the 'old' typeAlias.

Seeing yours I wondered if that might apply somehow. Yours using the 'bmrk' type written to either the data or resource fork while the Finder still uses 'alis' to the resource fork?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Bookmark alias files v. Finder alias files
      • From: Shane Stanley <email@hidden>
References: 
 >Bookmark alias files v. Finder alias files (From: Shane Stanley <email@hidden>)
 >Re: Bookmark alias files v. Finder alias files (From: Ken Thomases <email@hidden>)
 >Re: Bookmark alias files v. Finder alias files (From: Shane Stanley <email@hidden>)
 >Re: Bookmark alias files v. Finder alias files (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Bookmark alias files v. Finder alias files
  • Next by Date: Re: Bookmark alias files v. Finder alias files
  • Previous by thread: Re: Bookmark alias files v. Finder alias files
  • Next by thread: Re: Bookmark alias files v. Finder alias files
  • Index(es):
    • Date
    • Thread