Skip to main content
Home Forums MacNN ShapeShifter DOES Modify System Files! — #5
Post #5 by goMac
Source ForumMacNN
CategoryDevelopment
Post DateFri, 23 Sep 2005 - 20:35
Original URLhttps://web.archive.org/web/20051013084228/https://forums.macnn.com/showthread.php?t=270682
Post
Quote:
Originally Posted by BatmanPPC
nope, doesnt modify the file .. do this in terminal and see for yourself:

% cp /System/Library/CoreServices/Search.bundle/Contents/Resources/MDSearchWidget_Pressed-1.tiff /tmp/
% open /System/Library/CoreServices/Search.bundle/Contents/Resources/MDSearchWidget_Pressed-1.tiff /tmp/MDSearchWidget_Pressed-1.tiff



The reason this works is probably because ShapeShifter patches FSRef like my above code. Using the terminal bypasses FSRef by using the UNIX Open() command. Spotlight being a proper Mac OS application probably does use Carbon FSRef's.
mp.ls