• 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: PICT control problems [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PICT control problems [SOLVED]


  • Subject: Re: PICT control problems [SOLVED]
  • From: John Lunt <email@hidden>
  • Date: Fri, 23 Jun 2006 21:31:22 +0100

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:
http://www.carbondev.com/site/?page=Interface+Builder+Images

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


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: PICT control problems [SOLVED]
      • From: Markus Hitter <email@hidden>
    • Re: PICT control problems [SOLVED]
      • From: David Dunham <email@hidden>
    • Re: PICT control problems [SOLVED]
      • From: Scott Thompson <email@hidden>
References: 
 >PICT control problems (From: John Lunt <email@hidden>)
 >Re: PICT control problems [SOLVED] (From: John Lunt <email@hidden>)
 >Re: PICT control problems [SOLVED] (From: Scott Thompson <email@hidden>)

  • Prev by Date: Guard Malloc not working
  • Next by Date: Re: PICT control problems [SOLVED]
  • Previous by thread: Re: PICT control problems [SOLVED]
  • Next by thread: Re: PICT control problems [SOLVED]
  • Index(es):
    • Date
    • Thread