• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSApplicationMain question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApplicationMain question


  • Subject: Re: NSApplicationMain question
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 22 Apr 2010 17:21:30 -0700


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 (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


References: 
 >NSApplicationMain question (From: Bill Appleton <email@hidden>)
 >Re: NSApplicationMain question (From: Abhinay Kartik Reddyreddy <email@hidden>)
 >Re: NSApplicationMain question (From: Bill Appleton <email@hidden>)
 >Re: NSApplicationMain question (From: Shawn Erickson <email@hidden>)
 >Re: NSApplicationMain question (From: Bill Appleton <email@hidden>)

  • Prev by Date: Re: Forcing plist preferences file to be saved as text?
  • Next by Date: Re: Determining preferred localizations
  • Previous by thread: Re: NSApplicationMain question
  • Next by thread: Re: NSApplicationMain question
  • Index(es):
    • Date
    • Thread