On Apr 22, 2010, at 3:45 PM, Bill Appleton wrote:

for better or worse i am porting a large piece of enterprise software from
carbon/windows to cocoa/windows
most of the code is platform independent, but i can't make big changes to
the overall structure of the program
so like step one is to replace WindowRef with NSWindow and watch the carnage
ensue

That is absolutely not going to work. You might be able to get away with it for a little hack, but not a large program. Carbon and Cocoa are too different — Carbon is a toolbox while Cocoa is a framework. Cocoa has a specific design that apps follow, with an inverted flow of control where you let the framework call your code.

The approach you're taking is like the old Monty Python sketch where the pet shop owner wants to convert a dog into a fish by shaving it and sticking a tube through the back of its neck so it can breathe underwater.

—Jens_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to