mac

Bash script to mkdir

I am trying to create a directory based on a variable entered by a user and then save files there. I thought this would be simple enough for me but I get an error message "No such file or directory" when I try to save there. When I hit "ls" it lists the directory with a "?" after it. I am working with an .sh script on a Mac terminal....

how do i install PHP with JSON and OAuth on Mac Snow Leopard?

i want to use the dropbox api via this library http://code.google.com/p/dropbox-php/ ...

Setting the active executable in Xcode

Hi, I have the same problem as this guy had : http://stackoverflow.com/questions/2332214/setting-the-active-executable-in-xcode I'm pressing the "option" key, and it does add more options, i'm choosing iphone simulator 3.1.3 , but when I press "run" , still the ipad simulator is running. The problem only appears when I choose "Iphoe ...

Trying to detect a verification code in Xcode on x86_64

Hello, I'm trying to detect when a verification code is entered into a text field, so like if I wanted someone to type in "this is a test.", it would then run the following code: system("say this is a test"); But I keep getting the error "void value not ignored as it ought to be". I have no idea what this means. This is what I have so...

wifi and 3g iphone and mac app comunication

I created two apps, one for iphone and one for mac. They communicate back and forth. The iphone is used as a "remote control" to do things on my mac. For now it just changes the color of a text label on the mac app when I press a button on the iphone app. As of now, it can only connect through wifi. It uses bonjour and finds discovered ...

How do I switch out Views in a Cocoa application?

So I'm beginning to learn how to use Cocoa. I think I've pretty much got it but I'm hung up on creating and switching views. I'm rewriting a game I made a little bit ago for practice. All I want is one window (preferably not resizable) and I want to be able to switch out views for different screens in the game. First, I have the main me...

Is there a way to develop an iPhone game on a PC?

Basically, that's my doubt. I want to develop an iPhone game on my free time, but I dont want to buy a Mac, so, is there a way to use my pc to develop the game?. Thx in advance. ...

Setting an NSScrollView uneditable - Xcode x86_64 architecture

Hello, I'm making an application for someone, and I need to make this NSTextView in an NSScrollView uneditable. Whatever I do, I just can't get anything to work. There is no editable or allow editing check box in Interface Builder for it, so I'll to do it programmatically. So far, I have tried the follow codes. [TextView setEditable:NO]...

How to send NSLogs when a user presses a button or does something

Hello, I'm making an application for someone, and theres some things I'd like to monitor. I have NSLogs all set in place for each action, but I want to be able to send those to a console or something. Is there anyway of doing this? Also I don't want the user to know about it, I'm monitoring this because I gave the user a password for an ...

Is there a version of Fixed 6x13 bitmap font with less whitespace (line spacing 0.8)?

I think the fixed 6x13 font, FixedMedium6x13.dfont, the default in X11, is the best programming font. All the others that people gush about (Consolas, Inconsolata, Proggy, Monaco) just aren't as compact (without sacrificing readability). Or maybe I just like it. For the purposes of this question, assume we want nothing less than the X11...

In textmate, how do I jump to a file? how to open the file explorer?

On my macbook, when I am exploring my filesystem and then open a file in textmate, it just opens the code window. How can I open the textmate file explorer? How can I jump to a file that is in a "project"? i.e. that is a file within the root folder or sub folders? ...

How to activate Type 1 (.pfb, .pfm, .afm) font with Objective-C (Cocoa) on Mac?

How can I activate Type 1 font that is consisting of files like .pfb, .pfm etc. on Mac in Objective-C? I mean, only for my program, and not for the whole Mac (FontBook) - I just need to activate it, write a text and then deactivate. I tried ATSFontActivateFromFileReference, pointing it to any of these files - no luck. Googling didn't he...

Wrapping word configuration in mac

When i am using TextWrangler and double-click a word "game" in a sentence like "game.score", the word game is selected, but the both words and dot "game.score" is selected instead in some other editor like Smultron. How can I configure that? (in Smultron or both please) ...

Starting Mac Application development

Hi all, I am newbie to Mac Application Development.I am planning for an application having the features like de-fragmenting the mac ,parental controls, data backup etc... I do have some exposure to Objective C (Developed a small application for iphone) So please anyone could advice me regarding where to start,where to find best re...

Objective-C library for accessing SVN

Are there any Objective-C libraries available for accessing SVN repositories. It is a very difficult thing to Google for due to the high correlation on the words involved. I would like to use one in an OSX 10.6 application. ...

Using Azure SQL Services from a Mac?

Azure SQL Services looks pretty cool, and I'd like to use it as a hosted database. I set myself up with a starter web edition database, and after clicking through a million and five EULAs, I got to a console and created a database. It gave me a connection string for ODBC, and for ADO.NET. I'm using a Mac, with 10.6. What are my options?...

how do you get gcc (or llvm) to generate ARM code from the OSX command-line?

On OSX 10.6.4 with iPhone SDK and Xcode 3.2.1 installed: $ gcc foo.c -arch arm gcc-4.2: error trying to exec '/usr/bin/arm-apple-darwin10-gcc-4.2.1':execvp: No such file or directory ...

How to gradually retrieve data from NSTask?

I am working on a GUI (Cocoa) for a command-line tool to make it more accessible to people. Despite it being a GUI, I would like to display the output to an NSTextView. The problem is that the output is large and the analysis the tool carries out can take hours/days. Normally, when working with NSTask and NSPipe, the output is displayed...

How to create an .app file in mac os x from binaries?

Hi, I have a project in the form of binaries which can be distributed to other mac pcs. How to create an .app file for that project? Thanks in advance ...

Unable to view all hindi sites on MAC 10.5.5

Hello everyone, I have created a sample Indian site and tried in Safari on MAC 10.5.5, I am unable to view, Browser shows Boxes instead of valid text. I tried the same on latest firefox browser but same issue. I have changed the encoding to UTF-8 in browser preferences but it not help. Please let me know how to resolve this. Thanks i...