image
image

Go Back   macosx.com > Content & Information > Apple News, Rumors & Discussion

Reply
 
Thread Tools
  #1  
Old February 16th, 2002, 12:29 AM
Registered User
 
Join Date: Dec 2001
Location: Massachusetts
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
ZeroAltitude is on a distinguished road
Curious semi-technical question about a Mac Feature

You know one thing that is very impressive about Macs, for someone coming from a PC world? It's that, when you make an alias, or a dock image of an application, you can *move the folder that the application is in without breaking the alias or dock image*.

I think that's amazing.

So could someone, preferably a system's engineer or a programmer, but anyone who knows would do, please tell me how this is done by MacOS? I am a programmer, and the idea of an alias or image that references a path to a file makes good sense, but... the mac doesn't have a registry, and so I can't really visualize how the MacOS can map these launchers to... to what? To a Finder-search pattern? To a special link to a filesystem inode that doesn't change when the file moves?

What gives? How do these guys make my life so damn easy? I'm a programmer -- I'm uncomfortable not knowing!

Thanks,

-0
Reply With Quote
  #2  
Old February 16th, 2002, 12:31 AM
Registered User
 
Join Date: Dec 2001
Location: Massachusetts
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
ZeroAltitude is on a distinguished road
Follow-up

And if like in X-windows, there are special files somewhere on my drive that Mac OSX uses for dock image references, or if there's a resource file that is used for the same, could someone point me to it so I could learn the features of that file/resource?

Rock on.

-0
Reply With Quote
  #3  
Old February 16th, 2002, 04:59 AM
Krevinek's Avatar
Evil PPC Tweaker
 
Join Date: Oct 2001
Posts: 645
Thanks: 0
Thanked 0 Times in 0 Posts
Krevinek will become famous soon enough
Well, aliases under MacOS using HFS/HFS+ behave rather uniquely. Each file, folder/etc. on your computer is given a unique id number. If you move the item, this id doesn't change, if you make a copy to another partition, HD, or just duplicate it, this copy will have a DIFFERENT id number.

So when you just move a target of an alias, it still knows what item is the real one, since it defaults to finding the item by id number, and opens it up rather than using the path that is also included in the alias for speed.

Dock image references? As far as I know, it just pulls on the icon files in the bundles for the apps/docklings. Since MacOS X uses a folder to enclose the binary and the files it needs, the icon used for an app in the finder is the one used in the dock. Docklings sometimes break this, but still have the icon stored within the bundle. System icons such as folders, the trash, and the translucent background are part of a bundle that contains GUI resources for images and whatnot to produce the Aqua look.
__________________
iMac G5 2.0Ghz (10.4.x, Main System)
MacBook 1.83Ghz (...Feburary)
"Sometimes I drive to run from all my demons \ Sometimes I drive so I can be alone \ Sometimes I drive to see the world in different light \ Sometimes I drive for no reason at all" - Assemblage 23, Drive
Reply With Quote
  #4  
Old February 16th, 2002, 08:53 AM
fryke's Avatar
Super Moderator
 
Join Date: Sep 2000
Location: macosx.com
Posts: 13,498
Thanks: 2
Thanked 32 Times in 30 Posts
fryke has a spectacular aura aboutfryke has a spectacular aura about
about the id: right, i believe. but there's also a hidden 'desktop database' file. was in mac os 9, is in mac os x. this database file *knows* where you've dragged something. but if you move or alias via the Terminal, that information will not be saved, afaik.
__________________
macnews.net.tc is active again.
iMac 24" 2.4 GHz, 4 GB RAM, 320 GB HD. Mac OS X 10.5.6
MacBook Air 13" 1.6 GHz, 2 GB RAM, 80 GB HD. Mac OS X 10.5.6
iPhone 3G 16 GB white, AppleTV 1G 40 GB

Mac user since 1987, Apple Product Professional 2007, 2008. Apple Certified Support Professional 10.5
Reply With Quote
  #5  
Old February 16th, 2002, 12:21 PM
Krevinek's Avatar
Evil PPC Tweaker
 
Join Date: Oct 2001
Posts: 645
Thanks: 0
Thanked 0 Times in 0 Posts
Krevinek will become famous soon enough
Right, since an alias is just a particular type of file, while a symbolic link is just a reference to another path (which is stored in a file)...

The DB from OS 9 is gone, and one will notice that this HAS changed the behavior of searching for apps (MacOS 9.2.x even follows this behavior at times too) only in the Applications folder when it is first opening a file of some sort of new type/etc.

I think what you are referring to is the HFS+ catalog and b-tree which holds information on pretty much all the files/folders on the drive, so you should be able to search by ID number that way if I am not mistaken.
__________________
iMac G5 2.0Ghz (10.4.x, Main System)
MacBook 1.83Ghz (...Feburary)
"Sometimes I drive to run from all my demons \ Sometimes I drive so I can be alone \ Sometimes I drive to see the world in different light \ Sometimes I drive for no reason at all" - Assemblage 23, Drive
Reply With Quote
  #6  
Old February 16th, 2002, 01:44 PM
Registered User
 
Join Date: Dec 2001
Location: Massachusetts
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
ZeroAltitude is on a distinguished road
Fantastic! Thanks! </no text>

<no text>
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A bit of nostalgia: A Salute to Mac OS X simX Apple News, Rumors & Discussion 31 March 24th, 2005 07:45 AM
HP Photosmart 1315 and USB Print Sharing zwheeloc Mac Classic System & Software 12 February 6th, 2003 09:20 PM
apps list Mac Osxtopus Mac OS X System & Mac Software 7 May 29th, 2002 12:31 PM
Apple: Forget XP, try the Mac tagliatelle Bob's Place 1 November 25th, 2001 07:12 AM
Netscape 6.1 Profile Transfer from Mac OS 9.2.1 to Mac OS X chemistry_geek Apple News, Rumors & Discussion 0 October 12th, 2001 06:42 PM


All times are GMT -5. The time now is 08:13 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.