osx

Can I safely exclude sleepimage from OS X backups

Manually moved to SU: Can I safely exclude sleepimage from OS X backups I am using Chronosync to make a complete bootable backup of my OS X 10.6.4 machine to an external USB drive. It takes a LONG time (even incrementals) and part of the problem is the 8GB sleepimage. Can I safely exclude this from the backup? I realize that ...

Translate makefile to produce static libxxx.a instead of dynamic libxxx.dylib

I am compiling a library (http://www.antisphere.com/Wiki/tools:anttweakbar) but issuing "make" with its included makefile on my mac produces a dynamic library (.dylib). I would much rather have a static library so that I can deploy it with my app. Is it easy/possible to translate the flags in the makefile to produce a static library? It...

How to make a view controller first responder for an NSView in Cocoa

I'm trying to implement a view controller for a custom NSOpenGLView based view (this is Cocoa, not Cocoa Touch). The view is contained within a NIB loaded window but it does not have its own NIB. In fact the window contains multiple instances of the view. I want to route mouse events to the controller instead of to the view. I would ...

How to open and write/read to a USB CDC "serial" device on Windows, Linux, OS X?

I've got an Atmel AVR A90USBxxxx device that I have configured to "talk USB" via CDC. It's designed to take input from a Host computer, running Windows, Linux, or OS X. I'm under the impression that Linux and OS X will immediately recognize this CDC device, and with a simple .inf a Windows machine can be told my VID/PID should be opene...

Monitoring Apples "System Events" with Cocoa

Hey all, I was wondering if there was a way to write a Cocoa app that listened for OS system events such as an application launching, a window switches, etc, etc. My thought was to watch [NSNotficationCenter default] for messages but so far I haven't been able to find much. Does anyone have any suggestions? Thanks! ...

os x aptana jquery content assist doesn't work with php

Hello I'm running aptana studio 2 standalone on os X 10.6 and I've never been able to get a proper jquery auto-complete to work in a PHP project. Php code completion works. Inside an .html file jQuery and html completes nicely as well. But to my frustration it doesn't complete inside a php file in a php project! And yes I've tried both ...

GCJ on SnowLeopard

Hi all, I do not know if this is the right place to ask this question.. but... do you know if there is some installer of gcj available (or some way to install it) for Mac OS X 10.6? I tried to install the MacPorts one but it has compilation errors. ...

creating a block device programmatically in mac os x using iokit framework

Hey all, As i am a total noob to mac os x programming i am having some problems understanding this.I want to create a block device in mac os x leopard which would act as a normal drive in mac os x and after that i want to define the geometry of that device or drive according to a drive which i created during installation. As i a...

MySQL Migration to OSX?

Hello all i look around for software to MySQL Migration som bardy maby can help me? i use OSX platform, and relly confurse over i can't get a software for this. i use a lot of time to look 2 database its "up2date" sombardy can maby help? or maby MySQL scripting i need? donno i hob for helping to mysql Migration software on osx. ...

What is the equivalent of option/alt + left/right arrow on debian but on a Mac OS X?

As the title says... It's been annoying me forever that I can't skip over words when writing in the Mac terminal (it works when im logged into Debian via ssh on the Mac terminal) I get '[D' on Mac instead of jumping a word left. ...

How to profile the time of calling initializer functions when dyld loads an image?

I am now trying to optimize the launch time of an application, and currently want to reduce the time spent by the OS image loader. From dyld(1), I found two environment variables: DYLD_PRINT_STATISTICS and DYLD_PRINT_INITIALIZERS. DYLD_PRINT_STATISTICS causes dyld to print statistics about how dyld spent its time. This is its output wh...

How to make PageUp/PageDown/Home/End work correctly when using putty to connect to Mac OSX

I recently got to maintain an OSX server box . I usually use Putty (on Windows XP) to connect to Linux boxes , and it works well . PageUp/PageDown/Home/End all work in vi and pico. But when I connect to this OSX box , all these four keys not work in vim (7.2.108) but work well in pico ... How to make them work in vim ? Here are some s...

Library for both iOS and OS X apps?

For a while now I have been killing spare time by creating a 2D game programming toolkit/library. It is written in Objective C, and consists of an OpenGL rendering system and a whole bunch of AI, physics code, a bunch of specialized containers and other game related stuff. Apart from the OpenGL based View mechanism (obviously), most of t...

CALayer or CATextLayer with a nsoperationqueue

I have CALayer with an image, to render/calculate the ref of this image needs a lot of time. When I am using an NSOperationQueue to do that and set the layer content in this block the image will not show immediately, it will show after around 2-3 second. I try to set the layer for setNeedsDisplay and so one, but this option seems not be...

ruby version and gem's ruby version do not match

RubyGems is reporting a different ruby version than running ruby --version. Looking for suggestions on diagnosing and fixing this. OS is OS X 10.5. lando-macbook:rubygems-1.3.7 lando$ gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0] - INSTALLATION DIREC...

LaunchAgents for GUI app

Hi I would like to launch my app each time user logs-in. I added plist file to /Libray/LaunchAgents folder : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; <plist version="1.0"> <dict> <key>KeepAlive</key> <false/> <key> LaunchOnlyOnc...

Get webcam stream on Mac Os X in Java

Hi, I would like to get the webcam stream of my Macbook (the integrated iSight webcam). I use Java, and I don't know anything about Objective-C so I'm looking for a "full-java" solution. I found some class example, but they were made in 2005 and they don't work on my system. Thank you ...

Inject C code into *nix application: replacing a function

Hello ;-) I have a newbie but really important question for me: I have a Mac Os X application that uses carbon api, but it is still a C++ application. I need to debug which functions are called at execution time and then make a C++ patch to replace one of those functions. The real goal: I need to log all text printed into a chat window...

OSX Quicklook debugging

I am writing a quicklook plugin for an MPO file. The plugin isn't that much of a problem, but the problem is trying to debug it. Apples documentation says that to debug you use qlmanage -r <filename> And I have. However, none of my breakpoints are matched. I assume this is as it hasn't matched my quicklook plugin with the type. Usin...

How to check value pasted to clipboard with AppleScript

Hey guys! I'm an AppleScript noob, and I really want to do something nice with it. How can I make an AppleScript that runs at all times checking for clipboard changes? What I want to do is check the clipboard, see if it's a certain value, and make a web request with that clipboard value. This is what I currently have, it just gets the ...