After installing SDL and SDL-devel in MacOS X 10.6 (Snow Leopard), trying to configure some source code that requires SDL yields:
checking for sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your pa...
Hi All, I have an NSTableView working correctly except when I'm editing one of the table items. If the user is still in edit mode, and it presses the Sheet OK button, the tableiew doesn't update.
How do I force the tableview to commit the changes when the user press the ok button (closesheet).
Also, how do I handle the ESC Key to cance...
I'm trying to use event taps to create an OS X program that will listen for Yiddish typed in transliteration and post the result in Hebrew characters. I made a very short program to test one things I'd have to do: http://pastie.org/791398
As is, the program successfully replaces every typed 'q' with 'w':
if(inputString[0] == 'q') { in...
I have a Cocoa application with an AppleScript dictionary described in a .sdef XML file. All of the AppleScript classes, commands, etc. defined in the sdef are working property.
Except for my "submit form" command. The "submit form" command is my only command attempting to pass a parameter that is an arbitrary hashtable of information f...
I'm trying to do some development work that involves authentication at home on my Mac. I've got a full domain set up here with my mac joined to it. Unfortunately, it seems like mod_auth_kerb is non-existent for the Mac platform. I tried compiling from source, but I get a bunch of warnings that don't really make sense and the compilation ...
This is just driving me nuts. I am trying to read a file in bash, remove duplicates, sort, and then display a "list choice" window via applescript.
My $DATALOG file is formatted like this:
field1 field2
field1 field3
field1 field4
etc...
Applescript=awk '{print $2}' $DATALOG | awk ' !x[$0]++' | sort -u | tr "_" " "| sed 's/^/\"/'...
Hey folks,
I've got a client<=>server app I'm building for Mac OS X, using Objective-c/Cocoa and xCode. I've created a different project for both the apps I have, and I'm wondering the best way to share classes between them. There are several classes I've made that would be useful to both. This far I've been copying them around, but I f...
I have a PyObjC project that I build on Mac OS X 10.6 with XCode 3.2 and I'm not able to run on 10.5.
All I'm using is the official PyObjC project templates to create an empty project (that simply opens a window). Then I build the app and copy it over to 10.5. But the app always crashes on 10.5:
Application Specific Information:
*** Te...
I wrote java application and i need to make it standalone for macos(.app). Earlier I used jar builder, but now i need to execute some shell script before java application starts. How can i do it?
...
I am using Simple Modal, the OSX style version. I have two calls to the modal and therefore two versions of content. When either of the buttons is clicked it selects only the first lot of content.
There is nowhere to put a hook on the content like most modal windows as there is no javascript on the page to add parameters... only an ext...
Here's the setup: I have a subclass of IKImageBrowserView whose zoomValue property is bound to a key VFBrowserZoomValue in the shared NSUserDefaultsController. I have an NSSlider whose value binding is bound to the same key.
This works perfectly to change the zoomValue of the browser from the slider.
I'm trying to implement -magnifyWi...
I want to retrieve the system language of a Macintosh in ISO-639-2 format (that is, in three character format).
Currently, I'm trying to use [NSUserdefault objectforkey:@"Applelanguages"]. This returns the Language code in 2 character format.
Whatever API I end up using, it should support MacOS X versions from 10.3.9 forward.
...
From an Apple example, I have this:
Event *event = (Event*)[NSEntityDescription
insertNewObjectForEntityForName:@"Event"
inManagedObjectContext:self.managedObjectContext];
Event inherits from NSManagedObject. Is there a way to avoid this weird call to NSEntityDescription and instead just alloc+init somehow directly ...
Apple provided this example:
NSError *error;
NSMutableArray *mutableFetchResults = [[managedObjectContext executeFetchRequest:request error:&error] mutableCopy];
if (mutableFetchResults == nil) {
// Handle the error
}
Why are they calling mutableCopy here? Is it because they wanted to have an NSMutableArray rather than an NSArray,...
I wonder if I could just execute a NSFetchRequest with just the Entity and nothing else. However, it seems to work with no errors, but since I've never seen anyone doing that, I wonder if there are any bad drawbacks in doing this. The documentation doesn't say if there's any default value used instead when I provide no NSSortDescriptor.
...
This exists in my httpd.conf file:
<Location /svn>
DAV svn
SVNParentPath /Users/iirp/Sites/svn
Allow from all
#AuthType Basic
#AuthName "Subversion repository"
#AuthUserFile /Users/iirp/Sites/svn-auth-file
#Require valid-user
</Location>
This is working file
When I change this to:
<Location /svn>
DAV svn...
I'm new to Cocoa and I want to know how I can get a list of all open windows. I'm not talking about running programs, since this would be an easy task. I want to list windows, for example, if I have Preview running with 10 pdf opened, my program should be able to retrieve a list with all those pdf.
I also want to know if there's some AP...
I've been considering using mmap for filereading, and was wondering how portable that is.
I'm developing on a linux platform, but would like my program to work on osx and windows.
Can I assume mmap is working on these platforms?
thanks
...
I want to be able to have two Erlang shells to talk. I'm running on OS X.
I tried the tut17 example here: http://ftp.sunet.se/pub/lang/erlang/doc/getting_started/conc_prog.html
I've also tried:
$ erl -sname foo
and then in a new Terminal:
$ erl -sname bar
(bar@elife)1> net_adm:ping(foo@elife).
pang
Any ideas?
...
Hi,
I'd like to create a terminal emulator for Mac OS X. The problem is: I have no idea where to start. Can I just use a whole bunch of NSTasks? Or do I have to read through tons of source code for programs like xterm, urxvt, etc?
I don't want a lot of customizability (= no config file parsing), nor complex features, and I'm only gonna ...