mac

Forcing Reading of a Text Field Before Dismissing Modal Dialog in Cocoa

In a Mac OS X Cocoa application, I have an application-modal dialog with text fields that are bound to the Shared User Defaults Controller. If I edit a text field, and then tab away from it before hitting the OK button, then everything works as desired. However, if I start editing a field, then hit the Return key to trigger OK, the old ...

recoverable class Fbd error(s)

My server (an XServe xeon 8-core [harpertown arch]) has been spamming kernel warnings lately and I cannot seem to get any concrete information on what may be going wrong. Has anybody encountered such errors before? thanks in advance, |K< Apr 6 13:44:19 xserve kernel[0]: /!\ WARNING: 27006 recoverable class Fbd error(s) ( ferr = 0x3000...

cross platform game development what to look for?

Hello. I am going to start a game in about 3 weeks and I would really like the game to run at least on another platform (linux, MacOS) but my team thinks that's a lot of work. I am up for it but wanted to know what are the things I should watch out for that won't port to linux (apart from Windows specific APIs like DirectXsound)? I've b...

What is an *.rsd file on Mac OS X?

I downloaded an App and it contained an *.rsd file. What's that? ...

Installing ipython with readline on the mac

I am using ipython on Mac OS 10.5 with python 2.5.1 (I would actually like to use ipython for 2.6.1, but it doesn't seem to be available?) I installed ipython via easy_install. It works but is missing gnu readline (needed for nice searching of command line history with ctrl-R, etc.) I found a blog post and other sources saying this cou...

how do you set @synthesize for an array?

Hello. How do you set @synthesize for an array like: float rgb[3]. Also, is the @property line: @property(nonatomic, assign) float rgb?? Thanks ...

NSURLConnection delegate doesn't get its didReceiveAuthenticationChallenge method on server status 401

I've setup a simple NSURLConnection to query an http-server. GET /path HTTP/1.1 Host: 192.168.1.161:8282 User-Agent: NetTest1.0 CFNetwork/441.0.2 Darwin/9.6.0 Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate Pragma: no-cache Connection: keep-alive The server responds with code 401 and the WWW-Authenticate header set ...

Storing username/password on Mac using Java

I'm writing a small program (a twitter client) in Java, aimed at Mac OS X. As part of its functionality, it needs to have a place to store the twitter username/password. The natural place would be the mac keychain, but I can't find any way of accessing it. Is there any way of accessing the mac keychain from Java, or failing that, what i...

C# mono from windows to mac

I wanted to know what i shouldn't do in code that will prevent my C# app from running on mac. ...

How to run a .sh-script in an Unix console/Mac terminal?

I know it, forgets it and relearn it again. Time to write it down. ...

Unable to download the source code of Open Source projects in Mac's terminal

I am trying to download the source code for wget in Mac. I managed to get the source code of wget in Ubuntu by apt-get source wget However, I have not managed to download source codes in Mac's terminal. I did not find the same utility in MacPorts. ...

Core Data syncing

Hi, is there a way to automatically sync my Core Data Model with a server (preferably REST)? Thanks ...

Can I do Java 6 development in OS X?

I know when Leopard came out everybody (well, everybody that was a Java developer and cared enough to do development on a Mac) was pissed that there was no Java 6 SDK support. I know somebody provided some kind of hack way a few months after Leopard was released, but I could have sworn that I read sometime later that Apple and/or Sun fin...

Is there a way besides Mono to run Microsoft .NET on a Mac or Linux?

I'm currently deprived from any Windows machine, and Mono doesn't run my application. Is there another way that might get around any reason why Mono wouldn't work? (I don't have the error message at the moment.) ...

NSApplicaton delegate - applicationDidFinishLaunching

I have declared a delegate for my cocoa application here : MyAppDelegate.h @interface MyAppDelegate : NSApplication { } - (void) applicationDidFinishLaunching:(NSNotification*) notice ; @end MyAppDelegate.m @implementation MyAppDelegate - (void) applicationDidFinishLaunching:(NSNotification*) notice { NSLog(@"inside appdidfinis...

Commenting blocks in Eclipse on Mac

How do I comment blocks of code in Eclipse on a Mac? ...

Preserving battery life when using Xcode - your settings/recommendations?

I often find myself wanting to open Xcode and do a little coding on international flights and while I'm away from power, but it's a quick way to empty my MacBook Pro's battery. What settings do you use to preserve battery life while running Xcode? ...

What's a good Ruby development environment for the Mac?

I used to develop Java on the mac and it worked out well, combo of just using the terminal and IntelliJ. What are good tools that run on the mac for doing Ruby development ...

How to add a global include path for xcode

I'd like to add ~/include to my include path for all projects while using Xcode, something like setting the environment variable CPLUS_INCLUDE_PATH in Linux. (See here for the related Linux question.) Is this possible in Xcode? I tried setting the above environment variable, but it doesn't seem to work. (And if it is possible, I'd like ...

Animated cell reordering in an NSTableView

Is there a good technique or example code demonstrating how to implement animated cell reordering? I have a custom cell class and regular reordering works fine, but I'd like to animate as much of it as possible (preferable something like the tab reordering in safari except in a tableview). Any ideas? Thanks. ...