Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Quick Help : Icons

Quick Help : Icons
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2001
Location: baltimore, md 21202
Status: Offline
Reply With Quote
Jan 25, 2002, 08:08 AM
 
Hi,
In cocoa, is it possible for my program to read a file's icon resource? Ultimately, I'd like to make a program that changes the icons of files.

Thanks for your help,
David
dstys
     
dstys  (op)
Fresh-Faced Recruit
Join Date: Mar 2001
Location: baltimore, md 21202
Status: Offline
Reply With Quote
Jan 25, 2002, 09:34 AM
 
Hi,

Actually, I was able to get the icon using the NSWorkspace iconForFile method. Anybody know how to "Set" (ie, change) a file's icon???

Thanks,
David
dstys
     
Junior Member
Join Date: May 2001
Status: Offline
Reply With Quote
Jan 25, 2002, 01:11 PM
 
hmm, i dunno.
(Last edited by xspriter; May 13, 2005 at 02:02 PM. )
     
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Jan 25, 2002, 02:07 PM
 
Someone directed me to this link when I asked for this information.

I haven't had a chance to try it yet but it looks like it could work. It seems to be some sort of cocoa wrapper on a carbon API call that handles icons.

Does that help you out?
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:04 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2