I'm using XCode to develop an App for Mac OS X. Xcode is heavy on my Mac Resources and it makes the machine pretty sluggish when i work on it for some long time(more than 8 hours). I used to work in C++ with the Command Line & Makefile and it was pretty enough and good for me. Is it Possible that i can Develop apps for Mac, which has some UI(NSStatusItem) fully through Command Line or mostly command Line ?
I explored through some Makefiles for Objective C, but i don't know how to bind the UI actions to the Code. I doubt if it's really possible though Command Line.
I have tried Searching for Command Line alternative for Xcode, but there seems to be None. The Only Choice is Xcode for developing Mac Apps.
I found out this. Maybe it'll help you :)
http://atastypixel.com/blog/objective-c-cocoa-on-the-command-line/
Related
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I develop for iPhone using a Windows development machine?
iOS development on Windows
I began to study objective-c and cocoa with a friend but there's a problem. I have a mac and i can write code and stuff on XCode, but my friend can't, because he have not a mac. Is there a way to download the iphone sdk and use objective C and Cocoa on a windows supported IDE? So he could write, test and send his code to me so i can try it on XCode.
Thanks for your answer.
You're not going to find an IDE for Windows that supports iOS development using Objective-C and Cocoa Touch. Your best bet would be to run Lion using a VM (virtual machine). However, this is illegal to the best of my knowledge. Yes, since Lion there have been some changes to the EULA (End-user license agreement), but these only allow Lion to be run on VMs if the host machine is already running Lion. That's right: you can run Lion using a VM if you're already using it. Not very helpful. Some people would whip out the old "who's going to catch you?" stuff, but that's not exactly sound legal advice.
Your friend has a few (legal) options. They can buy the cheapest device capable of running Lion and the latest version of Xcode. Alternatively, or in the meantime, if you're only doing basic stuff, you could have them write out their code into any text editor which supports Objective-C syntax highlighting, such as NotePad++. Then, they can send the files to you and you can add them to a project in Xcode. Of course, this means you'd probably have to do most of the nontrivial debugging and all of the compiling, etc, and that might be harder on beginners who are more prone to make mistakes. There's really not much you can do. You could look into GNUStep but that's closer to Cocoa and not Cocoa Touch (you said Cocoa, but since you want to make iPhone apps you obviously mean Cocoa Touch, which is different).
This could be a bad answer, but you and your friend can share a sigle mac/or mac mini whatever you have, with TeamViewer. When you are not working allow him to access your mac through teamviewer.
Disclaimer: Cocoa newbie here.
I wrote an app with a Cocoa GUI that acts as a wrapper for a command line tool. The problem is the tool does not come standard with OS X. Thus, you have to install the command line tool first before using the Cocoa app, or else the app won't function.
Can anyone point me to some documentation (hopefully, with examples), that can teach me how to install the command line tool when the user installs the app?
Thank you!
Why not include your command line tool inside the bundle of your Cocoa app? This way your Cocoa app is completely self-contained and the issue of "installing" the command line tool does not even arise.
Is there any tutorials or references, if such thing is possible, to make GUI applications out of command line apps?
What I mean is, having a command line app, wrap it into an app bundle and create a Cocoa GUI app that would have a simple interface to execute the command line app with its flags and parameters.
As a matter of fact there are. Here is the first hit for a Google search:
Cocoa Dev Central: Wrapping UNIX Commands
What you're looking for is the NSTask class. Check out the documentation for all the information you need.
For very simple scripts, I recommend Platypus. For more complicated scenarios, you could try something like Pashua.
I am currently in a class that is developing applications in Objective-C and Cocoa. I was wondering if there was any way to build and compile Objective-C applications on Windows Vista. During class, we are able to use the Mac machines provided to us, but I was hoping to do some work outside of class, and I only have a Windows Vista machine available to me. I have installed GNUStep. I am looking for a GUI or an IDE that I could use. I have Eclipse, and I tried to install ObjectivEClipse, but that is only for a Mac machine too. Any other suggestions? Thanks.
The compiler is no problem, since gcc includes an Objectve-C frontend. You could simply install Cygwin and use it. the issue is about libraries.
The Cocoa system is very Apple proprietary; but it's a descendant from NeXTStep. For a while (when NeXT was even deeper in debts than Apple) it was named OpenStep, and available as a shell around the NT kernel. Around that time, the GNUStep project was started, and it seems it's still there.
Note, however, that any xxStep libraries gives only a NeXT-like GUI, very different from modern macs. Also, a lot of the newer capabilities are not only new GUI; but new APIs too and these won't be found there.
in short... it's easier to go with a mac.
GNUstep itself offers ProjectCenter, which is a take-off of Project Builder, the NeXTstep IDE that Xcode is derived from. It also maintains the Interface Builder knockoff GORM.
Also, you'll want to bear in mind that GNUstep is a bit limited compared to Cocoa (just because Apple has a whole paid professional development team working on Cocoa full-time and GNUstep does not) and GORM uses a different format from Interface Builder, so if you're taking a class, there may be some Cocoa assignments you won't be able to do with it.
Under the heading of desperation measures:
It's old school but if you have a friend with a mac, you could telnet into the mac and run the dev tools there. You would code in an editor on Vista and then up load to the mac to compile.
That would only let you see the results of command line apps but it would better than nothing.
If the macs in your school lab are accessible you could just screen share from your Vista box. That's another long shot.
Might be easier to beg, borrow or steal a Mac mini.
The Cocoa frameworks are only available on Mac. For anything else, you'll have to use GNUStep.
I'm in the process of learning Objective-c but would like to run code snippets via some sort of emulator on Windows — preferably web based.
I want to understand Objective-C syntax and walk through common code examples, probably via some sort of console. I would probably leave any framework type learning for when I get onto my MacBook, at home.
I have done a quick Google with no success.
It depends what you mean. Objective-C can be compiled by GCC, so you can happily create Objective-C test apps on Windows. If you are talking about the frameworks though, which contain most of the power when developing on OSX then it's a no unfortunately. You can get libraries compatible with SOME parts from gnustep.org (and run them on Linux/BSD), but it's still not the full OSX "stack".
You can get OS X running in VMWare, but it's illegal, so you best bet is to pickup a cheap Mac that can run Tiger/Leopard and use that.
Looked at GNUStep?
Another possibility is to use Cappuccino.
http://cappuccino.org
It is a cocoa-like framework for javascript, and looks very similar to objective-c.
The language is called objective-j.
AFAIK you can use the GNU compiler to compile Objective-C, so that should be usable on Windows too. This should be sufficient to get you started with programming the language.
For Mac OS X however the language is only part of the equation, you will want to program against the libraries of Mac OS X, and for that you will really need a machine running it.
I'm not sure which libraries are present and which are not but you can run OS X Server in a VM (providing you have an OS X Server license of course). This would allow you to have a virtual Mac environment on your Windows system.
As has been mentioned above, there's no way to achieve what you want natively within Windows as the underlying system is obviously different.
Good luck.
There also is The Cocotron.