mac

Epoch Time (Ticks since 1970) - Mac vs. Windows

I have some C# web services that return JSON. The .NET JavaScriptSerializer returns dates in Epoch Time (milliseconds since 1970). On any Windows machine, the web based application processes the milliseconds back into the proper date without a problem. On my Mac, the dates are sometimes off by 1 hour. Not every time. Only sometimes....

svn tortoise and scplugin

hi all i've encountered some problems which i can't resolve. Any help is really appreciated. my customer uses mac and pc. tortoise on pc, scplugin on mac. when mac creates new directory, adds it to repository and commits it pc user can't update to the new version. The error is "Can't create directory /.svn. The System can't find the p...

Flash AS3 animation in Mac vs Windows

I am working on a short animated story, which has a scrubbable timeline and chapter headings. I used TimelineMax for sequencing it. For the most part, it is working fine. I am seeing some strange behavior that pop up, though: sprites disappear, functions stop responding to user input, seams of the sprites become transparent -- all small ...

Mac Excel 2008: Macros?

I know this isn't directly programming related, but at the same time... Mac Excel 2008 doesn't support VBA or Macros...which I need for a class... Does anybody know of a solution? I need a way to write simple macros on Mac in Excel--if it's possible. Please don't give vague answers if you don't know for sure. This is a serious questi...

java on all platforms

if you wanna code a desktop application in java for windows, mac and linux, will the code be the same for all of them? and you just change the GUI so that the Windows application will be more Windows-like and so on? how does it work without digging into details? ...

OpenGL on MacOSX

I'm writing an app that heavily uses OpenGL; either on the Mac or on Linux. I've heard of various rumors of Apple having buggy OpenGL drivers (and a reluctance to fix them). Can anyone confirm/deny this? If you've developed on OpenGL on both Mac and Linux, how do they compare? Thanks! ...

How to build "Auto Detect Proxy Settings" In Windows and in Mac

What are the steps to implement that feature in 1) Windows and 2) in Mac? I went through these, still I am not very clear! I am using C/C++ in Windows and in Mac. So, Win API or Mac API will be enough. I am also confused because Mac Firefox has also has a option "Use system proxy settings", which is not present in Windows Firefox. Thes...

NSPopUpButton as a NSTextAttachment in a cell in a NSTableView

I have a NSPopUpButton subclass that i use as a NSTextAttachmentCell. This cell is inside an NSAttributedString that is the data of a cell in a NSTableView. Now I d like to get the mouse events on the cell in the table trough to the NSTextAttachmentCell. Currently the events do not get trough to the attachment cell, unless the cell in th...

How to run mvim (MacVim) from Terminal?

Apologies but I am new to the whole UNIX/Mac command line. I have MacVim installed and I am trying to set it up as the editor for Git (version control). But I can't run 'mvim' from the command line as it isn't recognised. I don't see an option in MacVim to do this for me. I am guessing I need to edit a PATH variable on the Mac? ...

How to display a modal message box in C++ on Mac?

CFUserNotificationDisplayAlert and CFUserNotificationDisplayNotice creates a non-modal window and this is bad because it could bring your application UI in a very undesired state if you select the original application window (the message box is hidden but the applicaton does not respond). The old SystemAlert was modal but this one doesn...

backporting NSWindowDelegates windowDidEndLiveResize behaviour in OSX 10.5?

While 10.6 introduced the neat - windowDidEndLiveResize: et al for NSWindowDelegate, i need similar behaviour in 10.5 to avoid constantly invoking heavier functions via - windowDidResize:. Currently i can only think of a timer-based solution (i.e. checking in short intervals for when the last resize occured), which seems ugly. Is there ...

Creating a "Uninstaller" for a program on Mac OS.

I have a requirement to create a cross platform application that launches a web link to a feedback form when its uninstalled. This is obviously normal sort of behaviour on windows..., but on a Mac is is proving to be more complicated as applications are not technically installed and uninstalled in a windows sense, aka you just copy the ...

How to remove maximize button in Mac OS X tool window in Qt

I have a floating tool window. It works fine on Windows, but I can't get rid of the maximise button on Mac OS X. I have tried unsetting Qt::WindowMaximizeButtonHint and setting the window to fixed size. Nothing seems to work. MyWidget::MyWidget( QWidget* parent ) :QWidget( parent, Qt::Tool | Qt::CustomizeWindowHint ) { setupUi( th...

Web Develeopment IDE (Super Confused)

Hello, I am a web developer who switched to Mac OS X (Snow Leopard) and now I have some problems with the IDEs thing. I write XHTML, CSS, Javascript, PHP, jQuery and Ajax codes. But on Mac I wanted to ask what is the best (I mean it, The Best) app which handle all these things? with the following features: Syntax highlighting Code comp...

IKImageView and scroll bars

I'm trying to use the IKImageViewDemo provided by apple (http://developer.apple.com/mac/library/samplecode/IKImageViewDemo/index.html) and I'm trying to add scrollbars to it. I've tried two things: 1) embedding the IKImageView in a ScrollView. This had all sorts of weird effects, like the image was no longer located where it should have...

Copy Table data from one DB to another

For development I find myself needing to copy table information from one table to another quite often. I am just curious what are the easiest solutions to do this for Postgres. I have PGAdminIII but it looks like it really only support the long drawn out Backup/Restore. Is there a python or bash script somewhere or something that I ca...

How can I install Perl's Event::Lib on Mac OS X?

I want to install Realplexor (a Perl comet server) on Mac and it requires # apt-get install libevent-dev gcc # perl -MCPAN -e "install Event::Lib" I installed the first one using: port install libevent but I can't find "Event::Lib" with port nor fink. Does anyone know how I could install that dependency? ...

How do I test OpenCL on GPU when logged in remotely on Mac?

My OpenCL program can find the GPU device when I am logged in at the console, but not when I am logged in remotely with ssh. Further, if I run the program as root in the ssh session, the program can find the GPU. The computer is a Snow Leopard Mac with a GeForce 9400 GPU. If I run the program (see below) from the console or as root, t...

fgets() linux vs mac

Does fgets on a mac read until a carriage return '\r' or does it also depend on the new line '\n'? Reason is I am using fgets to read a file a line at a time. However if it is run on a mac file with only '\r' for the line ending it fails to do what I want. (run in linux) I don't want to be writing library type functions to deal with cr...

RegExKitLite matching HTML tags and extracting text

how uo use RegExKitLite matching HTML tags and extracting text ? ie: <li color=red> <span>1</span> <span>2</span> </li> how to get content between <li> </li> ? ...