Apple / Mac builds

I’m about to build my software.

  1. How do I create an icon!? I’ve dome some search… but my imagination is not wide enough for a relevant search!
  2. How important is USER/CREATOR in the Mac files?
  3. Do i build in Cocoa or in Carbon Framework? I truly believe that one will work with the other, but not reverse!

I have no access to either Mac or Linux, at least not at the moment, so these builds will really be like “shooting from the hip”!
(It’s a Swedish expression and maybe it doesn’t make sense in English? It means, “I don’t know what I do and simply hope for the best…”!!)

  1. You find a designer that you like and pay him/her some money.
  2. Forget creator codes. This is from 10 years ago. File ending and UTI is what you need.
  3. Forget Carbon, too. It’s deprecated and won’t get any love.

You need a Mac, really. Buy a MacMini if you don’t want to spend much money. You can even use the Mac to run Windows and Linux with VMWare.

  1. Thank you! I have a logo, excuse me. How do I insert this logo into the application!? (Excuse me for writing a bad question. My fault.)

  2. Thank you! I see such information on this page: https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_intro/understand_utis_intro.html

  3. Great! Thank you!

One thing at a time! I will buy a good Mac – eventually. Or, maybe get the one I have to work… We’ll see. (New once with SSD are awesome!!)

Select the App item in the Navigator. Click the Icon space in the Inspector. Drag images to the appropriate spaces.

Or drop the image right beside one location and it will be inserted in all locations :wink:

Did not know that. Thanks!

Great!!
I made one 512 pixel. But … the others!? Do I need to make one for each size!?
But also, it’s not a problem… just checking!


It’s easy when you know how!

No, the IDE will scale it down to fit. Using Sascha’s tip, it will scale and fill all of them at once!

Because of the poor quality of the scaled images I’ve made an AppleScript to resize.

I have it saved as a program in AppleScript-Editor.
If you drag an image (> = 512) to it you get a set of resized pictures

on open some_items
	repeat with this_item in some_items
		try
			rescale_and_save(this_item)
		end try
	end repeat
end open
to rescale_and_save(this_item)
	tell application "Image Events"
		launch
		-- size 512
		set the target_width to 512
		-- open the image file
		set this_image to open this_item
		set typ to this_image's file type
		copy dimensions of this_image to {current_width, current_height}
		if current_width is greater than current_height then
			scale this_image to size target_width
		else
			set the new_height to (current_height * target_width) / current_width
			scale this_image to size new_height
		end if
		tell application "Finder" to set new_item to ¬
			(container of this_item as string) & "512_" & (name of this_item)
		save this_image in new_item as typ
		-- size 256
		set the target_width to 256
		-- open the image file
		set this_image to open this_item
		set typ to this_image's file type
		copy dimensions of this_image to {current_width, current_height}
		if current_width is greater than current_height then
			scale this_image to size target_width
		else
			set the new_height to (current_height * target_width) / current_width
			scale this_image to size new_height
		end if
		tell application "Finder" to set new_item to ¬
			(container of this_item as string) & "256_" & (name of this_item)
		save this_image in new_item as typ
		-- size 128
		set the target_width to 128
		set this_image to open this_item
		set typ to this_image's file type
		copy dimensions of this_image to {current_width, current_height}
		if current_width is greater than current_height then
			scale this_image to size target_width
		else
			set the new_height to (current_height * target_width) / current_width
			scale this_image to size new_height
		end if
		tell application "Finder" to set new_item to ¬
			(container of this_item as string) & "128_" & (name of this_item)
		save this_image in new_item as typ
		-- size 48
		set the target_width to 48
		set this_image to open this_item
		set typ to this_image's file type
		copy dimensions of this_image to {current_width, current_height}
		if current_width is greater than current_height then
			scale this_image to size target_width
		else
			set the new_height to (current_height * target_width) / current_width
			scale this_image to size new_height
		end if
		tell application "Finder" to set new_item to ¬
			(container of this_item as string) & "48_" & (name of this_item)
		save this_image in new_item as typ
		-- size 32
		set the target_width to 32
		set this_image to open this_item
		set typ to this_image's file type
		copy dimensions of this_image to {current_width, current_height}
		if current_width is greater than current_height then
			scale this_image to size target_width
		else
			set the new_height to (current_height * target_width) / current_width
			scale this_image to size new_height
		end if
		tell application "Finder" to set new_item to ¬
			(container of this_item as string) & "32_" & (name of this_item)
		save this_image in new_item as typ
		-- size 16
		set the target_width to 16
		set this_image to open this_item
		set typ to this_image's file type
		copy dimensions of this_image to {current_width, current_height}
		if current_width is greater than current_height then
			scale this_image to size target_width
		else
			set the new_height to (current_height * target_width) / current_width
			scale this_image to size new_height
		end if
		tell application "Finder" to set new_item to ¬
			(container of this_item as string) & "16_" & (name of this_item)
		save this_image in new_item as typ
	end tell
end rescale_and_save

Thank you very much!
I now saved the logotype as .png -file and simply just dragged it into each location.
It was little fuzz but really, compared to all other kinds problem that I run into, this was a true quick-fix!!!
Especial considering the fact that this this project itself is about 3-4 years delay…

I think, at that time, I was looking to the instructions of icons in RealBasic, earlier versions!
Back then, I think it was more complicated!

Again, thank you very much for this input!