Custom Icon for a file


maccadamia

New Member
Joined
Feb 28, 2006
Messages
1
Reaction score
0
I am creating a file (desktop shortcuts) from my app that is essenially a .webloc file but I want to
give it a custom icon.

Is there a Cocoa way of doing this? I want to avoid using resource forks or Carbon.
Are there any plists that I need to modify?

thanks for any help.

cheers..
 
Ad

Advertisements

Kaveman

New Member
Joined
Nov 26, 2010
Messages
3,558
Reaction score
49
See NSWorkspace
- (BOOL)setIcon:(NSImage *)image forFile:(NSString *)fullPath options:(NSWorkspaceIconCreationOptions)options
 
Ad

Advertisements

Kaveman

New Member
Joined
Nov 26, 2010
Messages
3,558
Reaction score
49
LOL is there away to turn off these sad faces.

they should be colon : and ( open bracket. :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top