osx

SecPKCS12Import() from Security.framework fails on OS X 10.6

When I attempt to use SecPKCS12Import() from the Security framework as provided by Mac OS X 10.6, the result code is always errSecUnimplemented, regardless of the arguments provided. Furthermore, the linker is unable to find symbols for the constants relevant to this function declared in SecImportExport.h (i.e. kSecImportExportPassphra...

How to launch eclipse from a command line on MacOS with a workspace pathname

On linux: eclipse PathnameToWorkspace works fine, and launches eclipse on the workspace. I've never been able to figure out the MacOS moral equivalent, given the MacOS application tree structure. I suspect this is not a hard problem. ...

How to install EasyGUI on Mac OS X 10.6 (Snow Leopard)?

I would like to install EasyGUI on Mac OS X 10.6, but am running into trouble. Has anyone successfully done this? If so, what explicit set of steps did you follow? Thank you. ...

Why do I see 64-bit pointers in C++ on my 32-bit Mac OS X system?

So I've read a lot of related posts on SO and elsewhere such as: http://stackoverflow.com/questions/399003/is-the-sizeofsome-pointer-always-equal-to-four It makes total sense to me that on a 32-bit system I would expect 4-byte pointers and on a 64-bit system I would expect 8-byte pointers. So I'm running this code: int main() { cou...

Launchd job running every minute

I am attempting to write a launchd script that runs once a day, on weekdays only. But once I load the script, it runs every minute instead of just on-schedule. This happens whether I load the script as myself or as superuser: launchctl load ~/Library/LaunchAgents/org.myname.foojob or sudo launchctl load /Library/LaunchDaemons/org.myna...

Are there any Open Source FileMaker Plugins?

Does anyone know of any open-source FileMaker plugins? The only one I currently know of is Keystone (http://code.google.com/p/keystonefilemakerplugin/) Just wondered if there were any others? I've created a few of my own FileMaker Plugins for Windows, but am struggling on OS X so was hoping to be able to see some working examples to...

How to add an extra plist property using CMake?

I'm trying to add the item <key>UIStatusBarHidden</key><true/> to my plist that's auto-generated by CMake. For certain keys, it appears there are pre-defined ways to add an item; for example: set(MACOSX_BUNDLE_ICON_FILE ${ICON}) But I can't find a way to add an arbitrary property. I tried using the MACOSX_BUNDLE_INFO_PLIST target ...

Can Cocoa be used in FileMaker Plugins?

I am trying to port a Windows FileMaker plugin to OS X and am thinking that I should be doing this in Cocoa not Carbon, but I am struggling to get anything to compile as soon as I include Cocoa.h ...

What is the best tool for creating user guides with screenshots on a Mac?

Following what started here . http://stackoverflow.com/questions/141769/what-is-the-best-tool-for-creating-user-guides-with-screenshots-on-windows i need to create a user guide and quickstart for a rails app i will deliver in just a couple of days, need something quick, good, and if possibly free. of course leopard and snow leopard abl...

AppleScript to open named terminal window

I have two windows/tabs set up to run in Terminal.app, "syd" and "mel". i.e. in Shell | New Window, "syd" and "mel" are listed. How can I open these terminal configurations with AppleScript? ...

getResourceAsStream works differently on Mac OSX vs. Windows 7?

Hi all, I have a set of unit test cases that depend on a test.properties file. When I run the tests under Mac OSX or Linux using Maven ('mvn test'), they work fine. But when running under Windows 7, they can't find the file unless I copy it directly to the class folder. The code to return the properties is the following two methods: ...

OpenGL texture won't map - white square?

Alright, so I'm using cairo to turn an SVG into image data for openGL textures. That part works. But now the texture I'm using won't map to the quad I'm making. It's just showing up as a blank square. Is there something up with the order I'm calling things in or is there some secret function I forgot to use? const int SCREEN_WIDTH =...

os x python 2.6 bus error

i am getting weird python bus error when building a web app. http://pastie.org/714569 i am using python 2.6 from mac ports in osx snowleopart 10.6.2. i have done python_select and stuff. how to figure out what is going on? thanks ...

IORegistryEntry::fromPath() fail.

my IOKit kext is failing on older iMacs to locate the /options path in the DeviceTree plane of the IORegistry. has anybody else encountered this or know why it would fail? thx->adv IORegistryEntry* regEntry = IORegistryEntry::fromPath("/options", gIODTPlane); if(NULL == regEntry) { regEntry = IORegistryEntry::fromPath("IODevi...

How does an OS X installer package calculate required space?

I'm building an OS X Installer package for a product. When it is run, the 'Select a Destination' pane has an 'Installing this software requires X MB of space' label. But I can run the same package twice on the same machine, and see the claimed usage vary from, i.e. 85 to 127 MB, neither of which is the actual ~65MB usage of the product...

How to check if a file is a DLL?

Given a file, I want to check if this is a DLL, or a shared object (Linux) or a dylib (Mac OS X), or something different. My main interest is differentiating executable and DLL on Linux and Mac OS X. For windows, the extension should be enough for my problem. I already checked that the magic number technique doesn't work for Linux as ex...

Finding the version of OSX inside java

I need to test if the version of osx is < 10.5 inside java is this possible? ...

Disabling ESC and Command . in an OSX Cocoa app

I made a little cocoa app that brings up an IKPictureTaker and saves a picture to a file if you press the set button. Currently, if you press esc or Command . the window picture taker will close. Is there a way to disable this behavior? ...

PHP File Exists Always False

I have a case where file_exists() is always returning false. My latest attempt was to just test to see if it would return true for $_SERVER["SCRIPT_FILENAME"] and then return the value of the path if it couldn't find the file which it does. The path while not necessarily relevant to solving the problem is: /Users/joe/Workspace/720/ap...

How to intercept WM_DELETE_WINDOW on OSX using Tkinter

I'm trying to keep a Toplevel window from being closed in OSX by intercepting window manager WM_DELETE_WINDOW event. #!/usr/bin/env python from Tkinter import * def speak(): print "woof" root = Tk() root.title("root") win = Toplevel() win.title("win") win.protocol('WM_DELETE_WINDOW', speak) root.mainloop() When I run this I g...