tailieunhanh - The Cocoa Difference
. The Cocoa Difference Here are some of the advantages Cocoa programs offer. It's worth reading | . The Cocoa Difference Here are some of the advantages Cocoa programs offer. It s worth reading not to make you drool about a future when all Mac programs will fall into this category but to help clear up any confusion you may have about why certain features seem to be present only occasionally. Note The following features appear in almost all Cocoa programs. That s not to say that you ll never see these features in Carbonized programs the occasional Carbon program may offer one of these features or another. That s because programmers have to do quite a bit of work to bring them into Carbon applications and almost none to include them in Cocoa ones. . The Font Panel The Mac has always been the designer s preferred computer and Mac OS X only strengthens its position. For one thing Mac OS X comes with over 200 absolutely beautiful fonts that Apple licensed from commercial type companies. When you use a Carbon program you usually access these fonts the same way as always using a Font menu. But when you use a Cocoa program you get the Font panel which makes it far easier to organize search and use your font collection. Chapter 14 describes fonts and the Font panel in more detail. . Title Bar Tricks You may remember from Chapter 2 that the title bar of every Finder window harbors a secret pop-up menu. When you Control-click it or right-click or -click you re shown a little folder ladder that delineates your current position in your folder hierarchy. You may also remember that the tiny icon just to the left of the window s name is actually a handle that you can drag to move a folder into a different window. In Cocoa programs you get the same features in document windows as shown backin Figure 2-5 Section . This feature is available in many Carbonized programs but it isn t a sure thing. By dragging the tiny document icon next to the document s name you can perform these two interesting stunts Drag to the desktop. By dragging this icon to the desktop
đang nạp các trang xem trước