mac

Is JSCocoa safe for commercial Mac desktop applocations?

If I were to write a commercial (=sold for money) app for Mac OS X (not iPhone) would it be wise to do so in Javascript with JSCocoa? I know Javascript by heart but next to nothing about Objective-C and it scares me. Any thoughts? OTOH, I can always dive into Objective-C. But still, this looks like a nice shortcut. Or is it too good to ...

How to implement key equivalent for NSSearchField

I have a Cocoa application I am building which contains an NSSearchField control. I want to enable a keyboard shortcut / key equivalent so when the uses presses COMMAND-OPTION-F, the search field gets focus. However, after much searching, it is not clear to me what the best way to implement this is. There is not an option to set this fo...

How do you port a Cocoa/Mac application to Windows?

How do you port a Cocoa/Mac application to Windows? I mean how would you go about it? Assume the app was written with Objective-C and Cocoa, there's nothing fancy going on, no "engine" that could be factored out, etc. Rewrite from scratch? I don't think there will be huge overlaps between the Mac and Windows codebases, right? ...

How to set background color of cell with NSButtoncell type in NSTableView ?

This is my table view delegate: - (void)tableView:(NSTableView *)tableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)tableColumn row:(int)row { id theRecord; NSMutableString *gid; theRecord = [tableDataSource objectAtIndex:row]; gid = [theRecord objectForKey:@"gid"]; if (([gid intValue] % 2) != 0) ...

Mac OSX fullscreen application problem

My application uses SDL library. For enter to fullscreen mode I use SDL_SetVideoMode and appropriate flag - SDL_FULLSCREEN. Problem: When application is in fullscreen mode, I can't call "force quit" dialog and switching between other applications. After Cmd+Option+ESQ clicking my application is quit instead of "force quit" dialog is app...

Cocoa document-based application with multiple document types

Hi! I want to build a document-based app in Cocoa but so that it can create and handle different types of documents. Think Word, Excel, Powerpoint all in one application, only much simpler. But every window will be different based on the type of document. For storage I will use CoreData. I think of adding a field that specifies the typ...

Why there isn't xcode for windows?

Hi, i don't know why xcode cannot be hacked and become running on windows? is xcode has another programming method? also, i heared that iphone apps are made with objective c, so why this is not available in windows? Thanks ...

Objective C examples sought

I'm trying to add scrollbars to an IKImageView. Basically at the moment, I need some examples of a program that loads an image into a view, and if the window is too small, sets up scrollbars that do the right things... Why can I not find these examples on the apple dev site? Added info: After looking at ImagekitDemo I see that eviden...

Mysql runs remarkably slower on my MacBook versus other environments

I would like to speed up my MySQL on my MacBook. It's much slower than MySQL running on our servers or on virtual machines on other laptops. All the tables I deal with are InnoDB. I run a lot of django unit tests so there are a lot of create table commands that get run. Update: I should note that I'm really comparing this to another l...

Python Function Reference

There're tons of apps/widgets for PHP function reference and even for Ruby but I'm shocked to find there is nothing available for a popular language like Python (besides the official online documentation ofcourse). Is there really not a single handy reference widget/app available for Python? I have 'Pocket Reference' book, but a dashbo...

NSURLDownload Cancelling

So I am using NSURLDownload in a program, and it requires that I give the user an option to cancel the donwload. I tried using the -cancel method but it only works up until the device starts receiving data at which point i cannot find a way to stop it. any ideas? ...

False Applescript result in Cocoa

Hi, I have 3 tracks in iTunes and run this procedure: -(IBAction)reloadButtonClick:(id)sender; { NSAppleScript *script ; NSString *source ; NSString *result; NSDictionary *errorDic ; NSAppleEventDescriptor *ed; int total; source= @"tell application \"iTunes\" to get cou...

virtual machine player to os x

Hi, i was looking for a virtual machine players that i can run in mac osx. I looked vmware website and virtualbox and they dont have binaries to mac osx. I have to do kernel based development and i dont want to develop in my own machine. ...

my_thread_global_end threads didn't exit, error?

I am using MySQL c++ connector (1.0.5) , recently I moved get_driver_instance() and connect() methods to secondary thread then I am getting below error. Error in my_thread_global_end(): 1 threads didn't exit After googling I found that mysql thread isn't exiting. Is there a method in c++ wrapper to do cleanup? ...

mono obfuscator for non-window os

Are there any mono obfuscation programs out there that can run on mac os x? ...

Is there a way to get/use the OS X 10.3 Cocoa SDK on a 10.6 machine?

Before you ask, yes, I have a very good reason for wanting something to run on 10.3. It's a very small in-house project that must run on a very important person's machine, which cannot be upgraded for a very good reason. =) The 10.6 DVD doesn't seem to offer an option to install the 10.3 SDK, only 10.4+. I also can't seem to find it on ...

What jQuery IDE is this guy using?

In this video: http://vimeo.com/116991 I want to know because the result is changing as he codes it, and I want to use the IDE which has that feature. ...

How can I change the audio output device in Objective-C?

I'm building a simple Cocoa app and I want to direct the audio output to a specific device, instead of the system selected one. I know some apps, like Skype, let you select where to send the output to. How do they do this? I tried the MTCoreAudio framework but I can't even compile my app (or their AudioMonitor demo) with it included and...

Setting up .emacs file for mac ruby development

I am having a difficult time loading ruby-mode in emacs on my mac. The .emacs file is located at ~/.emacs I've added several commands to it (many pasted from this site) and none seem to get loaded. Any advise? I"m not sure if the file isn't loading or I have the command syntax wrong. All I need is the following 4 space indent (auto...

Run a cron job every x minutes with startCalendarInterval & launchd?

I'm using mac osx 10.6 - and it seems that the minutes parameter determines how many minutes past the hour that the job runs. But how do you set up a job to run ever x minutes past the hour. I've tried setting up minutes as an array of several numbers and an array with one string which is "*/5" i.e. similar to every five minutes syntax...