I'm implementing my own NSBitmapImageRep (to draw PBM image files). To draw them, I'm using NSDrawBitmap() and passing it the NSCalibratedBlackColorSpace (as the bits are 1 for black, 0 for white).
Trouble is, I get the following warning:
warning: 'NSCalibratedBlackColorSpace' is deprecated
However, I couldn't find a good replacement...
Hi All,
I would love to begin developing applications for the MAC OS X, although I have to idea where to start.
Problem: I currently do not, and cannot afford a new MAC OS X-based computer.
Solution: A very good friend loves trying out things that I've made for Windows, and also owns a MAC OS X computer, and is willing to test these ne...
Hi,
I am creating a software on Mac and I would like to change the value of an IORegistryEntry. I can view it on the IORegistryExplorer, but I can't edit it. So it's my understanding that I have to edit it via code. Here is my code:
CFMutableDictionaryRef matchingDict = IOServiceNameMatching("AppleUSBMultitouchDriver");
io_service_t se...
I'm on a Mac and I'm trying to make a Vim plugin for compiling/running actionscript files.
First, I need to run mxmlc on the command line, but to do that I have to keep on typing the path to it. Where do I place it so that I don't have to retype the path?
...
Hi
I am a beginner programmer, using python on Mac.
I created a function as a part of a game which receives the player's input for the main character's name.
The code is:
import time
def newGameStep2():
print ' ****************************************** '
print '\nStep2\t\t\t\tCharacter Name'
print '\nChoos...
Hi!
I have try to set icon for my App in the xCode.
In the info.plist I wrote:
<key>CFBundleIconFile</key>
<string>icon</string>
icon is icon.icns file 57X57 in the resources.
But finally bundle does not contain an icon.
When I press about my app Item in the menu bar an about window appears with my icon.
What's wrong?
Please hel...
I am using emacs on MacOS 10.6 with Terminal. I have a white background.
It's very hard to read quoted C++ strings. They are coming up in pale green. Keywords are in turquoise.
After searching through the source I cam across cpp.el and have determined that I am using the cpp-face-light-name-list instead of cpp-face-dark-name-list.
Ap...
Well the title says it all -
couldn't find that info using DiskArbitration or FSGetVolumeInfo/GetVolumeParms...
I know that hdiutil uses a private framework called DiskImages framework, but I wouldn't want to run an external utility each time I want this info... wheres the API for this ?
Thanks.
...
Hey,
I need to know active screen DPI on Linux and Mac OS. I think on linux xlib might be useful, but I can't find a way how to get currect DPI.
I want this information to get real screen size in inches.
Thanks in advance!
...
Hi
I have Mac OS 10.6.3, python 2.6, mac ports 1.8.2.
Im trying to run 'sudo port install py26-gtk' but my mac book doesn't get further than 'building gcc43', while doing that it switches off without shutting down.
It is not overheating since I tried it again while my mac book was sandwiched between 2 cold packs. The mac was cool and t...
I come from the iPhone development world but have never developed desktop applications.
Now I want to write a small but helpful text editor for helping wiring small articles. I have found that I always summarize knowledge in TextEdit in a raw, not nicely formatted manner. Next, I go through that and start forming useful sentences out o...
With all the SDKs floating around, it's handy to be able to build for multiple SDKs and platforms. However, bouncing from 3.2 to 3.0 and even occasionally 2.x, I frequently get deprecated warnings involving methods that have changed or been superseded:
warning: 'UIKeyboardBoundsUserInfoKey' is deprecated.
Since I still want to maintai...
The following code:
exception NoElements of string
let nth(k, list) =
let rec loop count list =
match list with
| head :: _ when count = k -> head
| _ :: tail when count <> k -> loop (count+1) tail
| [] -> raise (NoElements("No Elements"))
loop 0 list
;;
printfn "%A" (nth(2, [1; 1; 2; 3; 5; 8]))...
I have an app which works well live on AppEngine.
However, when I try to run it locally with the dev_appserver.py, it aborts within ~1 second with:
~/ dev_appserver.py --debug_imports myapp
/opt/local/share/google_appengine/google/appengine/api/datastore_file_stub.py:40: DeprecationWarning: the md5 module is deprecated; use hashlib ...
I've written code that exports vCards and have the problem that the PHOTO data exported will show on a couple Windows programs, but when the vCard is viewed in the Mac or iPhone addrs books, the photo doesnt show.
I wonder if anyone knows whether there is something different with the formatting needed on these platforms?
...
Hi,
I'm creating an application that emulates MacBook's multi-touch Trackpad. As you may know, on MacBook's trackpad
if you swipe 4 fingers up, it triggers the Show Desktop.
if you swipe 4 fingers down, it shows the Exposé.
However, if the Show Desktop is being activated and you swipe 4 fingers down, it will come back to the normal ...
Hi,
I've tried to user HandVU with OpenCV but when I tried to run "hvOpenCV config/default.conductor" I get a "Segmentation fault". Anybody know this problem?
macbook:handvu-beta3 User$ hvOpenCV config/default.conductor
will load conductor from file:
config/default.conductor
Segmentation fault
I installed OpenCV through http://openc...
I've checked out Apple's Quick Look Programming Guide: Introduction to Quick Look page in the Mac Dev Center, but as a more of a science programmer rather than an Apple programmer, it is a little over my head (but I could get through it in a weekend if I bash my head against it long enough).
Does anyone know of a good basic Quick Look G...
I have a net cam which provides a rtsp stream via the default 554 port.
I can view the stream perfectly using VLC (GUI mode) when I open rtsp://192.168.1.7/1234
(the "1234" is the [default] password the device requires to be in the url, for those who want to restrict access to the stream)
What I need is to have a cli-only linux box re...
http://developer.apple.com/programs/
so whats the difference between Mac Developer and iPhone Developer membership?
If you signup to Mac Developer you can download the iPhone SDK anyways? so why would you sign to iphone developer?
...