mac

JarBundler ant task build (OS X) which does not start in mac's /Application folder - permission denied

Hi, I have used the jarbundler ant task to create an OSX (10.6.4) XXX.app for my java app. The problem is that it starts fine in any other directory except the /Applications directory. A look at file permissions shows nothing amiss. I can get it to work by two methods - both not suitable for real deployments: Build the .app with Jar...

Testing Classes in Objective-C

I'm trying to find a way to test my objective-c classes like i test my java classes. Whenever i build a java class I just drop a main() method at the bottom of my class and tell eclipse to compile/run the class I'm working with. However, in objective-c I'm not allowed to do this. I have been reading around the web and have heard a lot a...

Multiple Secrets in One Keychain Entry

I have three secrets to store in the Mac OS keychain. Currenly I store each of these in a separate keychain entry. The drawback to this is that if my application is updated the user sees three "allow access" dialogs, one for each entry. What I'd like to do is store all three secrets in one keychain entry. One of these secrets is a us...

Time each CPU core spends in C0 power state

The title says it all. Any help figuring out how to do this would be great: How much time each CPU core spent in the C0 power state over the past second. This is for a mac app so Objective-C, cocoa and c are needed. Thank you! ...

linking mac framework to qt creator

Hi, I have a project that uses SystemConfiguration.Framework. I've been using xcode, where adding the framework is quite easy, just add it to xcode project's framework. But now, I need my project to be cross platform, so I'm using QT Creator as a single IDE, for Windows and Mac. The problem is that I don't know how to tell QT Creator ...

Selenium doesnt see my test suite

I've created a test suite in selenium IDE using the example code from the website and when I right click and attempt to load the suite it tells me the test is empty. This is on latest stable ff for mac and selenium 1.07 ...

Can I execute sudo make install twice from different locations?

I am on Mac, Snow Lepard. In preparation to install PIL I need to install libjpeg. So, from my home directory I did: tar zxvf jpegsrc.v6b.tar.gz cd jpeg-6b cp /usr/share/libtool/config/config.sub . cp /usr/share/libtool/config/config.guess . ./configure --enable-shared --enable-static make sudo make install But actually I read later...

Linking Macports libraries to XCode application

I'm trying to distribute my app's dependencies with the app. I've got the macports packages librsvg, boost, and cairo installed 64-bit-only on my Snow Leopard system. When I create an .app bundle of my program, it does not work on machines without macports and the relevant libraries installed because they are not included with the app, ...

Obtain kMDItemKind on files inside bundles returns nil

For some reason I cannot do this on files inside bundles and files residing on different volumes. Am I the only one experiencing this problem, and if not how do I solve it? The Finder seems not having difficulties showing spotlight properties for the same files that I'm experiencing problems with. I want to obtain the kMDItemKind of ...

XCode - Can't access Repository to Configure

I have a working SVN repository (used the Bitnami 1.6.6 build), which I have validated is functioning with SvnX. Here's the symptom. I load up XCode, go the SCM menu, and select Configure Repositories, and then try to add a Subversion repository. Nothing happens. It was working (see note below) but now a new Repository isn't create...

Mac: How do i add context menu option in Finder for associated Cocoa application files?

Hello, On Mac i have a Cocoa application that associates it's file type with a specific extension. When user double clicks on such files my application is launched with a file name as a parameter. Think of it like when you double click a pdf file the pdf viewer application is launched to display the pdf. What i need now is to add an o...

Is there any method to run example.exe C# desktop application through double click in Mac OS X 10.4.8?

I can run example.exe from Terminal( "mono example.exe").And I can not do this through "Open With" option because it doesn't get mono application type to choose it. How can I do it double clickable? ...

Unable to install sqlite3-ruby gem

I've xcode 3.0 installed. And I need to install sqlite3-ruby gem (for rhosync). When I run: sudo gem install -l sqlite3-ruby I get following error: Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/V...

Is there really no mremap in Darwin?

I'm trying to find out how to remap memory-mapped files on a Mac (when I want to expand the available space). I see our friends in the Linux world have mremap but I can find no such function in the headers on my Mac. /Developer/SDKs/MacOSX10.6.sdk/usr/include/sys/mman.h has the following: mmap mprotect msync munlock munmap but no mre...

Snow Leopard and Enthought Tool Suite problems: cannot install Enable

I'm an OS X novice who has been pulling hair out trying to install ETS components on Snow Leopard. The initial problem centred round the message. /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory I came across a fix which involves (a) loading the mac 10.4 SDK from the Snow Leo...

What is the "identity string" of my certificate (mac + codesign utility)?

I'm gonna say this right away: I have no idea what I'm doing here. I am not a mac developer. Here's the scenario: I have an installer (.pkg) that my boss wants me to sign. I have a certificate, issued by Thawte; which I've imported into the keychain program (and set it to be trusted for everything). In package maker, under the conf...

OpenDirectory.framework: connecting to remote servers?

I'm trying to replicate at least some of the functionality of Workgroup Manager using the NSOpenDirectory.h APIs available in 10.6. I can communicate with my local directory just fine but no matter what I try I can't establish a connection to a remote machine. Here's my ODSession and ODNode setup code. NSDictionary *options = [NSDic...

iPhone's class equivalent in Mac

Hi. I have to migrate a iPhone application to Mac OSx. Anybody knows where I can find a equivalence between the iPhone class (lets say UITableViewController) and the Mac equivalent? Tankes ...

Open Directory User logs

Hi, is there any way in MAC OS X server 10 to check the IP, User Name, Workstation name etc of the user logging in and out out Open Directory? Any suggestions would be welcomed... ...

Is there an easy way to make part of an NSString object a superscript or subscript?

For example, suppose I have an NSString @"20O(2H,1H)19O", and I want all the numbers to be superscript. Is there an easy way to do this? ...