osx

Adobe After Effects Plugin With Cocoa (Overriding malloc)

Messing about a bit, i have a working Adobe After Effects plugin with a bit of Obj-c / Cocoa in it (NSArray and custom objects - not ui stuff). The SDK guide states:- Always use After Effects memory allocation functions. In low-memory conditions (such as during RAM preview), it’s very important that plug-ins not compete with After Ef...

Data on number of users of each version of Mac OS X?

Is there publicly available data somewhere with estimates on the number of users of each Mac OS X version? Particularly for the major releases (10.6.* Snow Leopard, 10.5.* Leopard, ...)? I am writing a new application and am wondering whether it's still worth the effort of supporting pre-Leopard versions of Mac OS X, mostly Tiger. I am ...

Alternative to udev functionality on OSX

I'm trying to create a custom file/check in check out script for external hardrives, however part of the script is from a Linux machine, which I have tested works fine, but uses udevinfo, OS X doesn't have udev, so is there anything that offers the same functionality? #!/bin/bash declare -a EXTERNAL_DISKS declare -a INTERNAL_DISKS for ...

Symbol Not Found, expected in Flat Namespace ObjC++

Hello, I've got probably what is a simple problem, but there's no informative errors or warnings during compile to alert me to what is going wrong. I've got a Objective-C++ app that includes a C++ main and ObjC header files. It builds fine, but when run, it gives this error message: Dyld Error Message: Symbol not found: _OBJC_CLASS...

Auto sorting of icons on window resize

Hello. I know this is a newbie question but I have never found an answer to this problem and I thought I would ask here. Where do you enable the option (if there's any) to automatically sort and line up the icons in a finder window, when you resize it? I have the default Windows' behaviour in mind where the icons take all the available...

Why don't file type filters work properly using nsIFilePicker in Firefox on Mac OSX?

I am running a chrome app in firefox (started with -app) with the following code to open a filepicker: var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"] .createInstance(nsIFilePicker); fp.init(window, "Select Files", nsIFilePicker.modeOpenMultiple); fp.appendFilt...

Location of New Window after old window closed

I have an app that allows multiple windows. I have a strange bug where, if I repeatedly open and close windows, new windows are positioned lower and lower on the screen. I would expect this if I were keeping the windows open, but it seems that the OS X window tiling mechanism is unaware of when my windows are closing. Potentially re...

How do i compile a .c file on my mac?

How do i compile a .c file on my mac? ...

want to remove a specific collectionview item with the remove button on that view

I have a collection view item and its prototype view. Within that prototype view I have a little x button. I want that button to remove the exact collection view item that it is on top of. I can remove a selected item if I click on the space around the x button but if I go straight to clicking the button before clicking the item it ...

How do I write x86 Debug registers from user space on OSX?

I'd like to play around with the debug MSRs defined in the x86 spec (DR0-7) from my OSX user-space program. Unfortunately, these require CPL == 0 (aka ring 0). I've thumbed through the OSX syscalls and with the exception of kernel_debug nothing really jumps out as a way to access these. It may be the case that they are only available vi...

Manipulate the Clipboard in C on Mac OS X

How do you copy text to the clipboard in C or with a Command-Line command? ...

Missing HID_Utilities.h on Mac OS X

I'm trying to build with IO for Mac, but I don't seem to have the file with friends installed. When I googled for it, it seemed to me like it was part of, or related to, glut implementation on Mac? Glut is installed. What do I need to do? ...

How do you compile a resource into the binary?

How do you compile a resource into the binary in XCode? That way is doesn't show up inside the application bundle as a file and it's not subject to manipulation by a user (whether good-intentioned or bad). Is this even possible? I'm particularly interested about this in terms of iPhone apps. Any help is appreciated! ...

Where is the default language data stored in OS 10.6

From a shell in 10.4 or 10.5, I was able to do this: /usr/bin/defaults read NSGlobalDomain AppleLanguages To get the list of the language preference for that particular machine. This was done so that I could restore it back to that list after changing it with the 'defaults write' command to something else (in order to help automate l1...

PackageMaker install script for rxtx

I am using PackageMaker to create an installer for my application. During installation I need to run a bash script to properly install rxtx, a JNI library for serial port communication. This library needs to have the directory /var/lock in place with user "root" and group "uucp". The installation script also needs to add the current user...

Cocoa for the non-techinical

How would you describe and explain Cocoa in non-technical terms, with lots of analogies to common, everyday things. For example, imagine you are describing it to a 5-year-old who keeps asking why? at the end of each explanation. This would invariable delve into the theory of OO so it could get lengthy, but the concept is important to the...

Can you use the PackageMaker command to create an installer from a list of files?

I want to (periodically and automatically) create an installer from various files and folders that are in many places. But, I can't figure out how to supply the packagemaker command with all the paths of the items I want to install. This is for internal development purposes, not for customer distribution. I want the files included to be...

Are "EXC_BREAKPOINT (SIGTRAP)" exceptions caused by debugging breakpoints?

I have a multithreaded app that is very stable on all my test machines and seems to be stable for almost every one of my users (based on no complaints of crashes). The app crashes frequently for one user, though, who was kind enough to send crash reports. All the crash reports (~10 consecutive reports) look essentially identical: Date...

Setup Padrino with DataMapper and MySQL database

Hello I am trying to setup a Padrino project using DataMapper and MySQL on my Mac OSX Snow Leopard. I have the necessary gems: dm-core data_objects do_mysql mysql (linked to my original Mac OSX installation) But when I try to start the padrino with PADRINO START from the console, I get the following error: /Users/ivolution/.bundle/rub...

Mono Winforms Mac OS X Replacement for WebBrowser

I'm one step away from having my Windows .Net application working on Mac OS X, and the last thing I need to figure out is the WebBrowser control. I need to display a webpage and not much more with winforms but haven't been able to find any examples or information on how I can replace the WebBrowser control on Mac OS X Has anyone alrea...