Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 3, Issue 1329



>I tried touch the application folder as the last step in the make
>process.  This did not change the icon.  What else would work around the
>Finder bug?

Try touching the enclosing folder.

To monkey around with this some more open a Finder window and manipulate
the contents of the dir from the Terminal.  Try touching a file, mkdiring
something, modifying the contents of the file or folder.  mv-ing the name
of a file or folder.   Notice which things the Finder notices.

This really isn't a Finder "bug."  When does a folder become a package?
When it is created?  No.  When stuff is created inside it that packages
have?  No.  When stuff is created inside it and then the contents of that
stuff is written?  I guess so.  Do you really expect the Finder to pay
attention to every write to a file inside a folder that might turn that
folder into a package?  This would keep the Finder pretty busy.

Creating packages isn't that common an event.  It's done mainly by
developer tools, installers, and the Finder itself.  Most of the time a
package already exists and is copied from one place to another.  In the
case where they're created de novo the Finder just needs to be notified.

touch the enclosing folder to notify the Finder.  Also an AppleScript like
the following works for me to get it to notice a package named MyPackage:

tell application "Finder"
	update file "MyHD:Applications:Adobe Photoshop CS2:Plug-Ins:MyPackage"
end tell

-- 
Brian  Stern
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Cocoa-dev Digest, Vol 3, Issue 1329 (From: Tron Thomas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.