I can recreate the shadows you're seeing in the screenshot if I enable the Core Animation layer for the tab view. If you're not using Core Animation, you can turn off the Core Animation layer for the tab view, and the problem should go away. On the right side of your screenshot, there are eight...
A relatively easy option is to download the text editor TextWrangler and open the python files there. You can run python scripts from TextWrangler using the #! (shebang) menu.
Mac applications generally use OpenGL for low-level graphics drawing. You should also take a look at Core Graphics and Quartz, which are Apple graphics technologies. You can read Apple's developer documentation at developer.apple.com. If you have installed Xcode, you can read the documentation...
Some suggestions/questions:
Set a breakpoint on the first line of code (the call to imageNamed: ) and step through the code in the debugger. Stepping through the code should help you pinpoint the problem.
Check the results of your calls to imageNamed: and initWithFocusedViewRect: to make...
Cocoa is a framework for building Mac applications. Cocoa Touch is a framework for making iPhone applications. Cocoa and Cocoa Touch have similarities, but are not identical.
If you want to make iPhone applications, learn Objective-C and Cocoa Touch. Learning C++ isn't going to help you make...
Every Objective-C object has a retain count. The release command reduces the object's retain count by 1. When the retain count goes down to 0, the object is not available anymore.
Unless there was a retain command (or some other command that increases the object's retain count) before the...
Create the project then add the files to the project.
Creating a project in Xcode 3.2 (the one that ships with Snow Leopard)
Open the Organizer by choosing Window > Organizer.
Click the + button at the bottom of the Organizer.
Choose New From Template > Java Templates.
If you're...
DLLs will not work on Mac OS X. You will first need a Mac dynamic library. If the hardware vendor does not provide a Mac dynamic library or framework, you will have to create it yourself. The vendor may provide a makefile to build the library from source. If they don't, you will have to create a...
Three things to check:
Make sure you clicked Universal 32/bit for the Release build configuration.
Make sure the Build Active Architecture Only build setting is turned off.
Make sure the active build configuration is Release.
If you still can't build a universal binary, someone else...
You haven't said what version of Xcode you're using. In the Architectures build setting in Xcode 3.1, there is a pop-up button in the Value column. Click the button and choose Standard (32-bit Universal). That should be all you have to do to build a universal binary.
You have three options.
Write your code in TextMate and compile from the Terminal.
Create an Xcode project (C++ Tool in your case) and use TextMate to write the code and build the project. TextMate can build Xcode projects. You could run your program from Xcode or the Terminal.
Do...
Yes, you can run the executable from the Terminal. When I was typing my first response, I wasn't 100% sure what you had to type to run the program for the Terminal (I don't run a lot of programs from the Terminal) so I mentioned the double-clicking from the Finder to avoid giving you wrong...
When you enter the following command:
g++ filename.cpp
All you're doing is compiling the file into an object file. You're not building an executable that you can run and view the output. Use the -o option with gcc to build an executable.
g++ -o HelloWorld filename.cpp
Now you'll have...