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
|