Re: converting resources, icons, and dialogs to interface builder
Re: converting resources, icons, and dialogs to interface builder
- Subject: Re: converting resources, icons, and dialogs to interface builder
- From: Chris Hanson <email@hidden>
- Date: Tue, 04 May 2010 13:10:10 -0700
On May 4, 2010, at 12:51 PM, Jens Alfke <email@hidden> wrote:
> On May 4, 2010, at 7:34 AM, Bill Appleton wrote:
>
>> 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.
This won't be very useful, as Carbon nib files are not the same thing as Cocoa nib files. Cocoa nibs are archived object graphs.
There are no automated tools to do this that I know of.
> 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.
Furthermore, native Mac OS X applications use different interface paradigms than classic Mac applications. For one example, there should be very, very few "dialogs" in a native Mac OS X application. These should be either document-modal sheets or regular windows/panels, or nonexistent. (You'll note that there's an NSPanel class but no NSDialog, I don't think it's just a matter of naming differences.)
Moving your codebase to Cocoa is a great point to clean up these sorts of things.
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden