mac

SVN diff flagging all lines of code as new when PC programmer updates file recently committed by Mac Programmer

Hey guys, Here's the scenario I'm currently running into: Programmer A (Using a Mac Version of Dreamweaver) edits file client.php and commits that file to the production branch of Project Foo's repository Programmer B (Using a Windows Version of Dreamweaver) edits file client.php to fix a bug in the that file. He then does a cp client...

Putting a 'terminal' in my application?

Are there any frameworks for say, putting a display like in Terminal.app in MY app, and then displaying text on it like usual output to STDOUT? Complete with scrollback and etc.? ...

LaunchDaemons and Environment Variables

For a while now, I've been noticing that my MacPorts-installed Apache2 instance hasn't been starting when I start up (http://stackoverflow.com/questions/2042992/macports-apache2-stopped-launching-on-boot). The LaunchDaemon is loaded. Today I bumped into something in a log file that may point to an answer, but I can't find any confirmatio...

Where is stdout for a Mac App?

It used to be that stdout went to the console log, displayed by Console.app. I've been having some problems with a firefox plugin (see other questions, sorry about the spam...) and I was trying to use printfs to at least see if I was STARTING my plugin. I just noticed today that my console log hasn't been updated since January 6. (Yes,...

Latticist on Mac OSX

I'm trying to run Latticist on Rattle, however, I keep getting the following messages: The following object(s) are masked from package:latticeExtra : rootogram Attaching package: 'latticist' The following object(s) are masked from package:latticeExtra : custom.theme.2 How can I unmask these objects? As I said in the tit...

New to Mac Platform, Trying to get back to default python install

Hi Everyone, I've been trying to follow this blog post to get my python version back to the snow leopard default. I have followed the first two steps without a problem but am lost when it comes to 3 and 4. I installed Python 2.6.4 but I assume the instructions are pretty similar. Thanks for your help! ...

page level watchpoints in gdb

Is there anyway in GDB to put a memory watchpoints on page level? I want to break on first access to a page, this access can be anywhere on that page, so i can't put a normal memory watchpoints - since I don't know the address - Also, is there anyway to change the page protection of memory page in GDB ( say change from r/w to no access )...

Mac vs. Ubuntu for C/C++ development?

I'm looking to buy a personal machine for development and I'm deciding whether to go with a Mac or a PC (on which I'd run Ubuntu). My plans for the next year or so involve getting more heavily into C/C++ and networking than I currently am. Are there any differences I should be aware of between the two OSes as far as C/C++ system librar...

How to Handle EOFError for raw_input() in python in Mac OS X

My python program has two calls to raw_input() The first raw_input() is to take multiline input from the user. The user can issue Ctrl+D (Ctrl+Z in windows) for the end of input. Second raw_input() should take another input from user with (y/n) type prompt. Unfortunately (in Mac OS X only?), second raw_input() raises EOFError when th...

How to Duplicate an AppleScript function in Objective-C?

This AppleScript code gives the name of files that have been dropped onto the script. How do I do the same in an Objective-C app? Would an application written in Objective-C be able to boot the JAR file using the file name as an argument to JAR? on open of theFiles -- Executed when files are dropped on the script set fileCount to (...

Upgrading to Ruby 1.9 on Mac OSX 10.4

I have an older powerbook running 10.4. It has Ruby 1.8.2 on it but I want to upgrade to 1.9. Other people suggested using macports and I tried it but am getting some weird errors. Can anyone assist? sudo port install ruby19 +nosuffix ---> Computing dependencies for ruby19 ---> Configuring gperf Error: Target org.macports.configure r...

How does one configure XTerm on Mac to correctly interpret nulls in man output?

Using XTerm, ssh to a linux box and run this: $ man ascii | grep BEL 007 7 07 BEL â\aâ (bell) 107 71 47 G Do the same from Mac Terminal: $ man ascii | grep BEL 007 7 07 BEL ’\a’ 107 71 47 G od output of above: $ man ascii | grep BEL | od -ta 0000000 sp sp sp sp ...

Mac Printing : programatically can not set printQuality, mediaType, paperSource, outputBin

I have a Mac application that supports customising field values programatically for Print dialog. However, I could not find any API in Mac (Cocoa/Carbon) to set the values for printQuality (Best/Normal/Low/Draft), mediaType(Standard/Glossy/Transparent), paperSource or PaperFeed(Auto/Manual/Casette/Env) and outputBin(Auto/Bin1/Bin2). Thou...

How do I detect whether a window is hidden (cmd-h) vs closed (cmd-w) - Mac

I'm developing an AIR application which uses multiple windows. I'm running into an issue where I want to open new windows (toaster notifications for example) when the primary application window is not visible, but the behavior is different depending on how the window is closed. When a user hides all application windows with CMD-H, openi...

Eclipse IDE speed sluggish on Snow Leopard Macbook

I've recently installed eclipse 3.4 on mac for java and flex coding - I noticed that the eclipse IDE on a mac is much slower than on a PC. By slow, I mean the UI and text editing seems to lag in comparison to eclipse in a windows environment or on a PC. Are there any tricks to getting eclipse more responsive on macosx? ...

How to perform a case and diacritic insensitive filter of an array of NSDictionaries (not NSString)?

I have an array of dictionaries. I would like to filter that array by seeing if the @"name" field of each dictionary contains a given string. The catch is that I would like to make my filtering insensitive to case and diacritics. If the array contained only strings I could easily use an NSPredicate. However, it doesn't, and I don't s...

compile lanshark on mac

I am trying to compile lanshark for mac, but do not know how to compile on mac. I am guessing that it is possible to compile linux source code on mac. if not how can i get this program to run? ...

Menu items become disabled in Mac when an "AlwaysOnTop" frame is showing

I have some frames that have the property alwaysOnTop set to true. If this frames are showing and the main frame shows a modal dialog, all menu items stay disabled until the application is restarted. It looks like an apple java bug Any thoughts of a fix? ...

Insert code template in eclipse on mac os x (ctrl-space not working)

How can insert code template in eclipse on mac os x? ctrl-space is not working :( ...

Java bugs for Mac site

Is there an official site where I can see all the java bugs for the mac? Edit: I want to check if an error I'm having is a known issue. ...