I'm just curious as to the possibility of loading and executing elf files on OSX. I know the standard executable format is MACHO, but NASM is unable to generate debug information for MACHO objects (and I am required to use NASM). I imagine its a long shot, but I don't suppose I can use ELF files. I can build them with NASM, but I can'...
Basically my setup is this. I have a many-to-many relationship in Core Data where a student entity can have multiple courses, and a course entity can have multiple students. My problem is in trying to figure out how to bind this relationship to the UI in Interface Builder.
I want to be able to add courses to a course array controller, t...
I would like to edit and submit SAS code from emacs (aquamacs) on OS X to SAS running on Vista (through Parallels). Any idea how to do this? I like to do everything through one place and it is really annoying to work within the windows emulator.
I have run SAS from a linux server through aquamacs but wonder if something similar can ...
I've been modifying some code to work between Mac OS X and iPhone OS.
I came across some code that was using NSURL's URLByAppendingPathComponent: (added in 10.6), which as some may know, isn't available in the iPhone SDK.
My solution to make this code work between OS's is to use
NSString *urlString = [myURL absoluteString];
urlString ...
I'd know how to do this with AS3, but ruby search turns up nothing. Any help please.
...
Hi All,
What is the best practice for moving to 64-bit on OS X? Using the 10.6 SDK and 64-bit intel as my SDK and target.
I have int32 types to change
Does OS X have an 'int64' or would one use a 'long long'?
Where might I find a resource to available data types?
What other issues are there?
...
I have previously baked a controller for a model that I have created.
When attempting to bake the view using cakephp I get the following errors:
Interactive Bake Shell
---------------------------------------------------------------
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[Q]uit
What would you like to Bake? (D/M/V...
If you search for something that opens Preview.app (e.g. a PDF file) in Spotlight, the application not only opens the file but actually copies the Spotlight query into the application's search field (for deeper search). iPhoto and Mail.app also do this.
This is a really nice feature. Unfortunately, Apple does not document how it's imple...
In Objective C (Cocoa) I have an app running with a modal sheet, but I want to allow the app to quit even when the sheet is displayed (contradicting the definition of modal I think, but I like the animated effect of modal sheets).
I'm already using the -setPreventsApplicationTerminationWhenModal method and it works fine, but I'm wonderi...
How can i get a process by know process name on mac os?
...
Here's the issue:
I have a list of App names that I want to launch. They do not include a path (e.g. {"VLC","Microsoft Word"}. I have two different copies of VLC in different directories. I would like Launch Services to ONLY open the one from /Applications/ and not EVER launch from /Applications/AnotherDirectory
I want to get the path ...
I have developed a launchAgent in cocoa. It works fine for me on dev environment, by placing the plist file in location /Library/LaunchAgents/.To distribute and install this on other laptops, I created the package using package maker tool. As part of installation process I want to change permission of the plist file and copy it to /Libra...
I'm trying to build a Python extension on MacOSX 10.6 and to link it against several frameworks (i386 only). I made a setup.py file, using distutils and the Extension object.
I order to link against my frameworks, my LDFLAGS env var should look like :
LDFLAGS = -lc -arch i386 -framework fwk1 -framework fwk2
As I did not find any 'fra...
I am writing a program in Objective-C (Xcode 3.2, on Snow Leopard) that is capable of either selectively blocking certain sites for a duration or only allow certain sites (and thus block all others) for a duration. The reasoning behind this program is rather simple. I tend to get distracted when I have full internet access, but I do need...
HI All,
My Carbon calls are failing.
I have:
#include <Carbon/Carbon.h>
in my PCH.
I have:
/Developer/Headers/FlatCarbon
in my Header Search Path
But calls like:
aDialog = GetNewDialog(16002, NULL,(WindowPtr) (-1L));
are failing saying:
GetNewDialog not declared in this scope.
I am targeting 10.5 64-bit intel.
...
Here's my C method to get the pid of the Finder process. GetProcessInformation() is causing a segfault. Why?
Here's the function:
static OSStatus
GetFinderPID(pid_t *pid)
{
ProcessSerialNumber psn = {kNoProcess, kNoProcess};
ProcessInfoRec info;
OSStatus status = noErr;
info.processInfoLength = sizeof(ProcessInfoRec);
...
I want to be able to run an applescript from another applescript, but have it return immediately.
I cannot use "osascript script.scpt &" because osascript does not permit "user interaction" and I want to be able to.
So, I'm looking for the equivalent of: osascript script.scpt & in "run script script.scpt"
EDIT for Clarification:
I...
I have a method that returns an NSRange. When I call this method from outside the class I get a compile error.
NSRange tmpRange;
tmpRange = [phrase rangeInString:searchString forString:theLetter goingForward:YES];
return tmpRange.location == -1;
in the .h file:
#import <Foundation/Foundation.h>
@interface Phrase : NSObject {
}
- (...
Hi,
I love my Mac. But I have always found that my DNS lookups are as slow, even while flushing caches and I travel over known roads on the Internet (I frequently visit the same websites over and over again). I was wondering if someone would know something a bit more automatic/intelligent than /etc/hosts and less complex and iron forged...
I LOVE using TextMate on my MacBook. It's great.
Unfortunately, I want to edit some files directly on my dev server, since it's difficult to recreate the environment locally. I'm using Git, so one alternative is to just edit locally, git commit, git push, and then git merge, but that's kind of complicated every time I want to make a sim...