mac

Programatically trigger "detect displays."

Im trying to trigger the same thing that the system does when you click on Detect Displays in the Displays System Preferences pane. Is there a way to do this programmatically? My goal is to create a LaunchAgent that does this at login to reset the display resolution in case a user messes with it. ...

What's the best way to program c++ on a Mac?

What is the best software ( open source ) for programming on c++ a Mac ? any suggestions? ...

Where are core dumps written to in Mac OS X?

On Mac OS X, if I send SIGQUIT to my C program, it terminates, but there is no core dump file. Do you have to manually enable core dumps on Mac OS X (how?), or are they written to somewhere else instead of the working directory? ...

Mac installer that runs a script

Hi, I need to create an installer for a Mac application that not only unpacks the information but executes an script before unpacking the information. Also I want an interactive application that asks for some parameters during installation. Do you know any tool to do that staff? Thanks! ...

Is there any simulator where i test touch screen applicaiton.

hi As we have iphone simulator for run and test without iphone. I want to know if there any software on which we can test application for PC and Mac. ...

Bounce the Downloads stack dock icon using C++ (without using ObjectiveC)

Firefox doesn't currently bounce the Downloads box in the dock when a download is finished, like Safari, Chrome and Camino do. If Firefox was written in Objective C, you could very easily add the one line of Objective C code required to do this. However, it's not. Is there a way to call this Cocoa function from C++ so that it can be a...

extended ascii chars and ansi in the mac osx terminal app

i wanted to create some shellscripts that display pretty ansi colored graphics for osx but unfortunately i find just very little information about that topic. osx seems to use monaco 10 as its default console font. is there some way to find out all displayable characters for this font? osx terminal runs in UTF-8 per default as far as i...

Ruby version control

Hi, Developing on a Mac and will host on Linux. Does any know of a good/reliable version control plugin or hosting platform I can us during development? Thanks, Eric ...

Mail.app like NSTokenField for names and emails

Hey guys! I want to build a NSTokenField that works just like the recipient field in Mail.app. I know how to search the address book for names and emails. These are probably really bad noob questions, sorry for that. How can I reformat my search results array to get items in the format "Name <email>" (like the auto completion results i...

How to Start learning to create iphone apps

Well I'd like to create apps for the iphone, starting out with really really basic stuff and working up, but I don't have a Mac at the moment (well I do but it's a powerPC ibook G4, which you can't develop on) and before I invest I'd like to learn how to create apps. I also read an article in a newspaper about how a guy starting creatin...

Enabling mouse and paste support in command line vim

I've found these two articles http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl (see 31.13) and http://www.tummy.com/journals/entries/jafo_20060727_145450 But am unfamiliar with basic vim setup. Can anyone help me with a step by step instructions to making mouse usuage in command line mode automatically enabled? (and you will have g...

Mac: reloading document in Chrome or Firefox?

How can I tell Chrome or Firefox to reload the document in the top window? Here's what I'm using for Safari: osascript -e ' tell application "Safari" activate do JavaScript "history.go(0)" in document 1 end tell ' ...

What applescript will a particular application accept?

I see a lot of applications that can respond to applescript messages such as this one. tell application "Safari" return URL of front document as string end tell How can I query an application to find out what commands it will accept? Is there a tool for doing so? ...

C++ syntax to call templated inner class static member function?

I have some template code which compiles fine in VC9 (Microsoft Visual C++ 2008) but won't compile in GCC 4.2 (on Mac). I'm wondering if there's some syntactical magic that I'm missing. Below I have a stripped-down example which demonstrates my error. Sorry if this example seems meaningless, I removed as much as I could to isolate thi...

How can I find out which Perl version was available on older Mac OS X versions?

I want to create Perl scripts that run on older OS X machines as well as on current versions. Is there a list or a resource where I can find out which Perl versions were distributed with older Mac OS X Versions (10.0 to 10.6)? ...

Retain counts of IBOutlets

While coding always the same questions concerning retain counts of IBOutlets came along: Retain count after unarchiving an object from NIB? When to use @property's for an IBOutlet? Retain or assign while setting? Differences between Mac and iPhone? So I read The Nib Object Life Cycle from Apple's documentation. Some test apps on Mac and...

Mac OS X. No such file or directory for Lua framework.

I have Cocoa project which uses Lua.framework. In the header file I try to include some .h files from this framework: ... #include <lua.h> #include <lauxlib.h> #include <lualib.h> ... And when I compile the source file I get this error: error: lua.h: No such file or directory error: lauxlib.h: No such file or directory error: lualib...

Firefox 3.5 on a Mac and @font-face

Hello all, Im having a problem with @font-face. It actually works flawlessly on Safari, internet explorer 7+ and Firefox for windows but not at all on firefox for mac. I'm using code from the bulletproof @font-face article Here's my Code: @font-face { font-family: "QlassikMediumRegular"; src: url("../fonts/Qlassik_TB.eot");...

Communication between applescript and FileMaker

I'm currently writing an applescript to be run within FileMaker. I need to tell filemaker what the name of its application is (FileMaker Pro or FileMaker Pro Advanced or whatever) so that I can within ANOTHER applescript within filemaker I can say "tell application filemaker" I currently have a script that figures out the name of the ap...

How to develop database application on Mac?

Hi, I want to implement Native Mac application with Database. How can i implement database application? Can anyone give me some sample tutorial to start? Thanks, Jim. ...