Thanks very much for the hints.
I've been programming in C/C++ for a while, but only 2 months on the Mac, and its taking a while to get oriented. Learning Carbon was an interesting book, but I'm slowly realizing that its fairly dated.
The Xcode documentation seems to spend 75% of its time explaining how to port your code from other versions/frameworks/platforms, but seems quite "diffused" for people who just want to write a modern Carbon app from scratch.
I don't mind reading the headers for the APIs, but a road-map of where to start would help (updated version of Learning Carbon anyone?)
The supplied Examples are good, but again its easy to spend an hour digesting something to realize that its 3 years out-of-date and on its way to the retirement home.
Any recommendations for a good beginner's (to Mac but not C++) guide?
John.
On 23 Jun 2006, at 14:39, Scott Thompson wrote:
On Jun 21, 2006, at 2:30 PM, John Lunt wrote: In short if you add a PICT control to your project, you also need to add a "New Build ResourceManager Resources Build Phase" to your project, as explained in detail here:
I'm going to report this as a Doc bug to Apple, as its (almost) impossible to work this out from the official Apple docs. It also impacts people using the (Apple written) "Learning Carbon".
Best wishes,
John.
Probably beyond the scope of this list, but you would be better served in the long run by avoiding PICT altogether. PICT is the metafile format for QuickDraw and QuickDraw has been deprecated.
What you should do in a modern application is use an HIImageView and some other file format like PNG, JPEG, TIFF, or PDF.
Finally, it is rather unusual for a modern Carbon application to have to use the ResourceManager. There are good reasons to do so, but in general it should not be necessary.
Unfortunately, "Learning Carbon" is out-of-date in many respects. Similarly, the on-line documentation can be misleading because it includes so much legacy information that is no longer relevant :-(
Scott
|