mac

Packaging a Mac app for distribution

What's the preferred way to create a distributable file for Mac OS: dmg or pkg? ...

ActionScript 2 FileReference problem on Mac OS

Hi There, I'm working on an AS2 application. One of the functions is upload a file to server (PHP) and grab raw text (XML) from response by listening to OnUploadCompleteData event of a FileReference Object. But I found the event can be correctly triggered, but the parameter data(:String) is always empty. And this only happens on Mac OS ...

command-click broken on Eclipse 3.5/Snow Leopard

Eclipse has a really awesome feature where you can click through a method via ctrl+click (or splat/command-click on OSX). For some reason this is broken for me (I can still access it via F3). I was wondering if anyone had run into a similar issue and might know of a fix? ...

Chrome OS Development on a Mac

Google just announced the open source release of their Chromium/Chrome OS product: Hello, open source developers. Would you like to help build an operating system for web users? I'm working on a macbook running snow leopard, and I want to start hacking around with Google's Chrome OS. They suggest using Ubuntu 8.10 linux distro. I'm...

Cron on XAMPP (Mac OS)

Hi All, I have installed XAMPP server on my Mac OS, how to setup a cron job on it? My requirement is that i want to call a php script at regular intervals . Thanks ...

Application exit event

Hi all, I am developing an application in cocoa .My application shows a pop up sheet initially .Now i need to know which event is fired when we try to exit the application by right clicking and selecting "exit" on the icon in dock,because i cant exit the appication because of the popup sheet ..looking for a solution ...

Beautifying a SWT application on Mac

SWT is designed to be cross-platform, so it can run on a Mac. The problem is it commits the cardinal sin of Macland - it's UGLY. Toolbars don't look like Mac toolbars, status bars don't look like Mac status bars, etc. Does anyone have any experience in making an SWT application look more like a Mac application? For example, by making...

Is there a sendKey for Mac in Python?

In Moc10.6, I want to put a active application to de-active, or minimize by Python I know I could use sendKey in Windows with Python, then what about in Mac? Thanks, guys! ...

File-level filesystem change notification in Mac OS X

I want my code to be notified when any file under (either directly or indirectly) a given directory is modified. By "modified", I mead I want my code to be notified whenever a file's contents are altered, it's renamed, or it's deleted; or if a new file is added. For my application, there can be thousands of files. I looked as FSEvents...

Cocoa Core Data and Tab View - How do I tell when Tab View is finished "loading" so I can tell the view to initialize itself?

Hi, I have a simple Core Data app I am building to try to understand Core Data. It has two entities: a weather station, and a collection of observations for a given station. I created the initial interface for this by putting a tab view on my window, selecting the first tab, and dragging the weather station entity onto that view; then s...

Center an NSView within an NSScrollView

How do I center an NSView within an NSScrollView like the way "Preview" does? ...

Cocoa Key Value Bindings: What are the explanations of the various options for Controller Key?

When I bind a control to an NSArrayController using Interface Builder, there are a variety of options under the "Controller Key" field in the bindings inspector. I understand what "arrangedObjects" is, and I semi-understand what "selection" is, but I'd love to see a really nice explanation of all the options and when to use each one. Th...

Good framework for the game of Go (weiqi, baduk)?

I enjoy the game of Go (also known as weiqi in China or baduk in Korea). I want to create a program (an evaluation function) to play it. I would prefer if the framework handled two important tasks: Handle rules for the game, including captures, ko rules, and final scoring. Handle communication between a server like KGS and my program...

OSX Quartz Event Taps: event types and how to edit events

Here's my code: #import <ApplicationServices/ApplicationServices.h> CGEventRef myCGEventCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon) { printf("%u\n", (uint32_t)type); return event; } int main (int argc, const char * argv[]) { CFMachPortRef eventTap; CFRunLoopSourceRef runLoopSource; even...

Software development on Mac

I was just wondering if from a linux software development perspective & software development perspective in general, if a Macbook is worth it. I know that the Look and feel is very good and all that. But I wanted to know more about how easy it is to coding on it (tools, IDE etc.). Mostly of the people whom I know that own a mac are not ...

How to detect Mac OS version using Python?

My application is assumed to be running on a Mac OS X system. However, what I need to do is figure out what version of Mac OS (or Darwin) it is running on, preferably as a number. For instance, "10.4.11" would return either 10.4 or 8 "10.5.4" would return 10.5 or 9 "10.6" would return 10.6 or 10 I found out that you could do this, ...

Black Arrow Status Item

I am working on a IM client for OS X, and I have the design in mind, but I need help with the code. On Snow Leopard, when you click a dock item, you get something like this: What I was thinking of was something like that: (photoshop) This is the basic idea, but it has to be resizable so that it can include more stuff, like so (stil...

Problem when NSOutlineView cells have same value

I have a Mac OS X application that uses an NSOutlineView with two columns: key and value, where you can edit the value column. I either have a NSString or a NSDictionary in a row. The code for the value of the cells is like this: - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem...

Set dirty dot in mac window using Qt

Is there a way to set the dirty dot (as shown in the screenshot) using Qt 4.5/4.6? ...

converting MATLAB code to Fortran

I a medical researcher with code written in MATLAB 2009b that runs very slowly because of a self-referential loop (not sure of the programming lingo here), i.e., the results of the first iteration is used during the second iteration, etc. (I have vectorized it to a fare-thee-well. I have run the Profiler.) I'd like to convert the slow...