Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I was wondering how I could change the icon in the "window bar" of my Mac app I've also added a picture of the icon I want to change since i believe window bar isn't the correct term.

enter image description here

Thank you in advance! :)

share|improve this question
    
Why was this moved ? This was a question meant for stack overflow... In the original post it had the tag objective-c and also xcode along with mac and mac, and this is something that is manage in Xcode so this is a mistake by the moderators... –  inFever Aug 27 '11 at 23:12
    
Yes exactly! I can't understand why they did that so I had to open a new post.. -.- stackoverflow.com/questions/7217945/… –  Sweppi Aug 27 '11 at 23:15
    
Trust me, when I got to this question there was no objective-c or xcode tag, but i'll migrate it back if you want. –  Kev Aug 27 '11 at 23:17
    
Indeed there are no tags. But that doesn't mean it's not related to those topics, it was just mistagged... –  jtbandes Aug 27 '11 at 23:21
add comment

migrated from stackoverflow.com Aug 27 '11 at 22:51

This question came from our site for professional and enthusiast programmers.

closed as off topic by Dori Aug 27 '11 at 23:31

Questions on Ask Different are expected to relate to Apple hardware or software within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

Excellent tutorial http://www.youtube.com/watch?v=EhS0NijV1G0

share|improve this answer
    
Welcome to Stack Overflow! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Kev Aug 27 '11 at 22:50
    
@Kev Ω: Just wondering, why did you mark my flag of this answer as "declined" yet chose to act on it? –  jtbandes Aug 27 '11 at 22:55
    
@jtbandes - Because if it's a wrong answer it shouldn't be flagged, it should should be downvoted so I declined your flag. Whilst this is just a link, it is still an answer and I have asked this poster to provide more details about the procedure here. Also I don't see any tags suggesting this is a programming question either. –  Kev Aug 27 '11 at 23:06
    
@Kev Ω: OK, fair enough. The phrase "my Mac app" as well as the fact that this is a legitimate programming question (see the link in my answer) make me fairly certain this is a programming question... –  jtbandes Aug 27 '11 at 23:15
add comment

You'll want to use -setRepresentedFilename:or the other similar methods. I don't think you can just change the icon to anything, it has to be associated with a file.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.