Mac OS X Programming phần 1 pps
... Internet Explorer code into a separate block of memory. To make use of the Classic environment, Mac OS X runs Mac OS 9 .1 as if the OS itself were a process. It's as if one OS (Mac OS 9 .1) is ... your application. Chapter 11 , "Porting Mac OS 8/9 Code to Mac OS X, " deals with the process of moving an existing code base from Mac OS 8 or 9 to...
Ngày tải lên: 12/08/2014, 21:20
... the event. Experienced Mac Programmer RunApplicationEventLoop is new to Carbon. It didn't exist in the preCarbon Macintosh Toolbox API. In the past, you've used WaitNextEvent within ... ); DisposeNibReference(nibRef); ShowWindow(window); RunApplicationEventLoop(); CantCreateWindow: return err; } Book: Mac OS X Programming Chapter 2. Overview of Mac OS X...
Ngày tải lên: 12/08/2014, 21:20
... Book: Mac OS X Programming Section: Chapter 2. Overview of Mac OS X Programming Adding a Picture to the HelloWorld Program The HelloWorld ... (http://www.lemkesoft.com). GraphicConverter itself is also an excellent example of a Mac OS X program written using Carbon. Regardless of the graphics program you use, you'll open a new document and paste the ... ) { IBNib...
Ngày tải lên: 12/08/2014, 21:20
Mac OS X Programming phần 4 pdf
... Book: Mac OS X Programming Section: Chapter 4. Windows Opening and Closing Windows You already know how to open a window in a Mac OS X nib-based program-Chapter 2, "Overview of Mac OS X Programming, " ... #define kNewWordWindowCommand 'nwrd' #define kNewNumberWindowCommand 'nnum' #define kCloseFrontWindowCommand 'cfnt' pascal OS...
Ngày tải lên: 12/08/2014, 21:20
Mac OS X Programming phần 5 pptx
... "\pArial" ); TextFont( fontFamily ); TextFace( bold ); TextSize( 18 ); MoveTo( 60,35 ); DrawString( "\pInfo Window" ); } Book: Mac OS X Programming Section: Chapter ... MyWindowEventHandler ); { case kBeep1Time: SysBeep( 1 ); break; case kBeep2Time: SysBeep( 1 ); SysBeep( 1 ); break; case kBeep3Time: SysBeep( 1 ); SysBeep( 1...
Ngày tải lên: 12/08/2014, 21:20
Mac OS X Programming phần 6 pot
... the CheckboxDemo program. Example 5.2 CheckboxDemo Source Code #include <Carbon/Carbon.h> #define kDoneCommand 'Done' #define kControlSignature 'LxZZ' #define ... kColorMenuGrayscaleItemNum 1 Book: Mac OS X Programming Section: Chapter 5. Controls Text Input Fields To accept user input, your program's window could use text input fields. This typ...
Ngày tải lên: 12/08/2014, 21:20
Mac OS X Programming phần 7 pptx
... pixels to the left of its current position of 40 pixels in, and 10 pixels down from its current position of 80 pixels down. After both routines execute, the result is that the new starting position ... blueDiagonalPixPat = GetPixPat( kPixPatBlueDiagonal ); PenPixPat( blueDiagonalPixPat ); PenSize( 10 , 10 ); MoveTo( 20, 20 ); Line( 220, 60 ); SetRect( &theRect, 30, 50, 15...
Ngày tải lên: 12/08/2014, 21:20
Mac OS X Programming phần 8 pptx
... in different executable formats. In this case, a NavEventUPP can point to a routine that is in native Mac OS X executable format or in pre -Mac OS X executable format. You'll also need ... opens. Example 8 .1 LocalizedWindowText Source Code #include <Carbon/Carbon.h> #define kTextFieldSignature 'Ltxt' #define kDylanThomasQuoteControlID 1 #define kQuote...
Ngày tải lên: 12/08/2014, 21:20
Mac OS X Programming phần 9 pptx
... an example of its use in opening a QuickTime movie file. Book: Mac OS X Programming Chapter 11 . Porting Mac OS 8/9 Code to Mac OS X IF YOU HAVE SOME MAC OS PROGRAMMING EXPERIENCE, you'll ... turning your Mac OS 8 or Mac OS 9 code into an application that's launched in the Mac OS X space! Figure 11 .1. The Carbon compatibility report. Apple...
Ngày tải lên: 12/08/2014, 21:20
Mac OS X Programming phần 10 potx
... mv Book: Mac OS X Programming Section: Appendix B. UNIX and the Terminal UNIX and the UNIX Shell Darwin is Apple's name for the lowest level, or foundation, of the Mac OS X. A big part ... cross-platform programming skills, and pad your resume (" ;Programming Experience By Platform: Mac OS, UNIX")! Mac OS X and UNIX As discussed in Chapter 1, "...
Ngày tải lên: 12/08/2014, 21:20