• 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
Custom icon for mounted disk being ignored
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom icon for mounted disk being ignored


  • Subject: Custom icon for mounted disk being ignored
  • From: Brad Peterson <email@hidden>
  • Date: Wed, 2 Nov 2005 09:47:10 -0800 (PST)

Hi all,

Is there a special trick to creating/specifying a
.VolumeIcon.icns file for a mounted storage card? My
application stores (or has the option to store) some
data on a flash, SD, etc. card.

However, once I detect it, I copy over one of our
icons to the card's .VolumeIcon.icns file. However,
Finder seems to ignore it. Now, usually, I know you
can do this with DMG files, and it seems that the
iPods do this as well.

Any ideas on why it wouldn't work? The source and
copied icns file are both valid, and I've ejected and
re-mounted the disk several times, to no avail. The
code itself is working, and very simple:

		if ([[[self imagePath] lowercaseString]
hasSuffix:@".icns"]){ //if you have an icon
			[[NSFileManager defaultManager] copyPath: [self
imagePath] toPath: path handler: nil];
		}

Thanks!



__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
 _______________________________________________
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: Custom icon for mounted disk being ignored
      • From: Alexander von Below <email@hidden>
  • Prev by Date: Two questions on CoreData
  • Next by Date: Re: Subclassing NSSearchFieldCell
  • Previous by thread: Re: Two questions on CoreData
  • Next by thread: Re: Custom icon for mounted disk being ignored
  • Index(es):
    • Date
    • Thread