mac

D programming & iPhone

I've just started learning "D Programming". I'd like to deploy my programs on an iPhone. which has me wondering; is is possible to develop for a Mac or iPhone using D?. I'd like the application to be completely written D or at least minimal objective-c. Am I starting a hopeless battle by choosing D over the other mainstream languages ...

PackageMaker - Accessing Model Identifier & Creating custom failure error messages

I'm using PackageMaker (ver 3.0.3 on Leopard 10.5.8) to install an application and want to check the Model Identifier & CPU prior to installation. The application does not work with certain models of MacBookPros. I've tried to use a pre-install shell script where I grab the system_profiler output and grep it for specific Model Identifier...

Bash Scripting General Questions (conditionals and variable passing)

I'm rather new to bash scripting, and Google isn't as useful as I'd like for this. I'm just playing around with a little password entry program in my .bash_profile and have something like this: read PASSWORD if $PASSWORD != 'pass'; then echo "wrong. exiting" exit fi Unfortunately, this doesn't work. I get these errors (darwin...

Should I take a Python CS class using Windows or Mac?

Hi, I'll be taking a Python-based computer science class next semester using my MacBook Pro. It will be centered around a custom-designed package for this class. The problem is that this package is being sponsored by Microsoft Research, so it was obviously designed with Windows in mind. Supposedly, it runs on Mac OS and Linux too, but t...

How to write and execute Installation Check script in Package Maker

Hi I found that installation check script first executes a condition if the condition is satisfied then installation proceeds other wise installation aborts. I want to write installation check script and apply the same while creating installer using PackageMaker. How to create and execute installation check script. Thanks Sunil Kumar Sa...

Making headers public in Xcode Framework

Is there a fast way to make headers public when setting up a Framework in Xcode? I always have to click through one by one, changing each one from private to public. This irks me. Thanks. ...

java - Debug full screen app in eclipse

Hi, I'm developing a java full screen application. I would like to debug this application using eclipse debugger. However, if I put a breakpoint, my application stops, but my eclipse window doesn't popup, because the full screen application is on. Up till now, I commented out the lines which made it a full screen application, but I won...

no such file to load -- rubygems

I'm newly switched over to the mac. I installed Passenger today. I installed the Passender preferences pane tool which required RubyCocoa. Now script/console won't run. The error message is: no such file to load -- rubygems Prior to installing the passenger-related files this seems to have worked fine. Any ideas? James ...

Metal Toolbar Icon Sizes

I am trying to create rectangular metal toolbar icons for a mac app like the ones seen in Safari, but can't seem to find any information on the pixel size. Human Interface Guidelines recommends that metal toolbar buttons should not exceed 19x19, but doesn't specify what the size of the icon should be if the user chooses "Use Small Size...

can we build a Mac installer with a delayed restart?

Hi We have built a Mac OSX installer which includes a driver that support some functinalities, hence we need to restart the machine after the installation. However, i wouldn't want to force it, but to allow users to postpone the restart for later (and meanwhile using the software without the driver) we couldn't find any option for that...

.NET winforms to Apple Macintosh

Hi, I have a winforms of .NET running in windows OS, my client wants the same to be run on macintosh OS, how do i start on this? Is there a conversion framework (mono/etc) available to implement this? Please reply. Thanks in advance, Karthick ...

How to check JRE version in safari using java script

Hi I found lots of help for a javascript function which will check JRE version . It worked fine in Internet Explorer. But I am using Mac Operating system and I have Safari. The same examples did not work fine for Safari. The following link tells about javascript function which will check JRE version http://stackoverflow.com/questions/1...

Install rails 2.3.5 mac os 10.6 (snow leopard)

Hi guys, My website is developed with ruby on rails 2.0.2. So I want to update this version to 2.3.5. Unfortunately, the new rails version doesn't include mysql so I install the mysql gem like this tutorial said => install rails But and it's my problem, when I launch my server (webrick), mysql crash (segmentation fault). I don't find ...

Bash Script on a Mac creates a info popup

Is there a way in bash on a mac to draw a pretty info box that displays a simple message like "please save all files to /Users/......" ...

Pick Up curent user in bash on a mac when running as a login hook

My Script currently takes the first user returned from "users" and in testing it worked fine but once i turned it into a login hook it couldn't pickup the user properly. Is there a way to pickup the user that is logging in? Using $USER doesnt work either Ive tried using "/usr/bin/logname" to get the username and that only returns "roo...

Handwired NSTextView clipping bug

I'm trying to assemble a NSTextView by hand as in Apple's TextSizingExample and found a boring bug. If you run TextSizingExample and select "Wrapping Scrolling Text" mode, then you'll see the text being partially hidden by a vertical scrollbar. Tried to play with the size and autoresizing mask of text container and text view but it didn'...

The logic behind MacOS's Exposé

This is just for curiosity. Exposé has two functions, among others, that rearrange windows on the desktop, one shows all the open windows so the user can see windows that are hidden below others, and other function in which moves all the windows to the sides letting the user interact with the desktop. I just wonder if someone knows...

List of all running processes

How can I get a list of the names of all currently running processes? (In C/Objective-C on Mac OS X.) ...

git-diff to ignore ^M

In a project where some of the files contains ^M as newline separators. Diffing these files are apparently impossible, since git-diff sees it as the entire file is just a single line. How does one diff with the previous version? Is there an option like "treat ^M as newline when diffing" ? prompt> git-diff "HEAD^" -- MyFile.as diff --...

How to create OSX Package that runs Mono application "natively" (Bootstrapper)

Instead of requiring my users to drop to Terminal and start my app via mono <x> command, I'd like to give them an experience of clicking on "X.app" and Mono runtime launches my .NET assemblies. Anyone done this? ...