Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 16, 2008, 10:26 AM   #1
kristiaand
macrumors member
 
Join Date: Dec 2007
Xcode 2.5 / 3 changing application icon

hi lads,
again just a quick question, i am at a little bit of a loss changing my applications icon from the standard Xcode project icon.

I can change the icon by using get info and dragging the icon i want into the old icons space in get info, but when i transfer it to other Macs or network shares the original xcode icon re-appears.

what am i doing wrong? i have poked around inside the application in xcode and i cannot see any obvious signs of the icon its using.



also am i correct in assuming an application that is built and compiled on a 10.4 G4 mac will not run on an intel based mac using 10.5?

i did try and the app just seemed to bomb out with an error, saying that the application unexpectedly terminated.


thanks everyone.
kristiaand is offline   0 Reply With Quote
Old Sep 16, 2008, 11:09 AM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
Get Info on the target, then go to Properties and put the name of the icon file (.icns) into the Icon File field. I wouldn't drag in an icon, because who knows where that icon is located. The icon must be a resource that gets copied into the .app's Resources folder.

If you're building on 10.4, make sure you link against the 10.4 SDK and build as a universal binary. If it's still crashing, there's something else going on.
kainjow is offline   0 Reply With Quote
Old Sep 16, 2008, 05:41 PM   #3
kristiaand
Thread Starter
macrumors member
 
Join Date: Dec 2007
Quote:
Originally Posted by kainjow View Post
Get Info on the target, then go to Properties and put the name of the icon file (.icns) into the Icon File field. I wouldn't drag in an icon, because who knows where that icon is located. The icon must be a resource that gets copied into the .app's Resources folder.
thanks for the info regarding this i had an idea it was going to be in there somewhere, but i just could not find it for the life of me... could you suggest any good resources for free mac icons? all i can find are PNG or ICO files.

Quote:
Originally Posted by kainjow View Post
If you're building on 10.4, make sure you link against the 10.4 SDK and build as a universal binary. If it's still crashing, there's something else going on.
Will have to have another go at this i compiled the app on a G4 mac using 10.4 moved it to a intel mac 10.5 and it just crashed out straight away. so i will have a mess around with the compiler settings regarding this.

thanks again for the help
kris
kristiaand is offline   0 Reply With Quote
Old Sep 16, 2008, 06:19 PM   #4
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
You can use img2icns to convert images to an icon.

If you're testing a debug build, try a release one instead.
kainjow is offline   0 Reply With Quote
Old Sep 16, 2008, 07:01 PM   #5
kristiaand
Thread Starter
macrumors member
 
Join Date: Dec 2007
Thanks again lads, your all legends im off on hols shortly so this maybe the longest reply to a post to find out if all went well, but again thanks for the info and the program it works very well.!!

thanks
kris
kristiaand is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting 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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Change Application Icons (iChat) geedevalois Mac Applications and Mac App Store 5 Jun 27, 2009 11:52 PM
Changing Application Icons Oliver Barker OS X 1 Jul 7, 2008 04:50 PM
Changing Application Icon in Dock at runtime satyam90 Mac Programming 1 Nov 21, 2007 07:50 AM
How do i change application icons?? twistedlegato OS X 5 Jan 6, 2007 07:05 PM
Changing Application Icons in 10.2.2 MacRoni General Mac Discussion 0 Feb 9, 2003 12:20 PM


All times are GMT -5. The time now is 07:16 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC