• 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: Setting icon with make file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting icon with make file


  • Subject: Re: Setting icon with make file
  • From: Tron Thomas <email@hidden>
  • Date: Wed, 08 Nov 2006 19:22:30 -0800


Date: Wed, 8 Nov 2006 00:09:43 -0500
From: Brian Stern <email@hidden>
Subject: Re: Cocoa-dev Digest, Vol 3, Issue 1329
To: email@hidden
Message-ID: <p06010202c1770e9f8fcb@[192.168.1.101]>
Content-Type: text/plain; charset="us-ascii"

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

I tried copying and touch all sorts of files and folders in the application bundle and nothing would cause the Finder to update the icon for the application. I will try the AppleScript command and see how that works. It seems that if it so difficult for the Finder to determine when a bundle is updated there should be an explicit and obvious command that can be issued from the Terminal that would cause this to happen.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Setting icon with make file
      • From: Brian Stern <email@hidden>
  • Prev by Date: autoresizing problem
  • Next by Date: Re: Login Application
  • Previous by thread: Re: Setting icon with make file
  • Next by thread: Re: Setting icon with make file
  • Index(es):
    • Date
    • Thread