On May 4, 2010, at 7:34 AM, Bill Appleton wrote:

there doesn't seem any way to do it except reading NSimage files out of the
bundle... is that right?

Right. Cursors in Cocoa are NSImages, and these are generally read out of individual image files in the bundle, probably .png.

does anyone know of a good way to go from the resource cursor to the image
file?
i am converting many rsrc dialogs from carbon to cocoa (DITL, DLOG)
is there any automatic tool for converting a dialog to interface builder?

I would ask on carbon-dev, since many Carbon developers probably dealt with this a while ago when switching over to Carbon nibs. I don't know if Apple has any tool; if the 3rd party app Resorceror still exists it might have a way to convert resources to images and nibs.

You are still going to have to do manual work on every dialog, even after nib conversion, to adjust the layout to Aqua human interface guidelines. Things like button sizes, window margins, and inter- control spacing are different. Also, old-style dialogs use Chicago/ Charcoal and Geneva, while Aqua should use Lucida Grande, and the text metrics are different. Finally, you'll want to wire up outlets and actions.

So it might not actually save you that much time to convert automatically, compared to just recreating them from scratch. Building a simple dialog in IB is incredibly fast; you just drag controls out of the palettes and snap them into place using the automatic guides.

—Jens_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to