Learning Mac Programming and XCode

I know how to program in PHP, currently learning Visual Basic in a college coarse, and am very interested in learning C++/Obj-C programming with Cocoa within XCode, but I do not know what books would be a good starting point. The only C programming I have ever done was back 14 years ago when I was in high school and never got into the old Classic Mac Toolbox.
Does anyone know of a good book that is both a "learn how to program on the mac with XCode" and a good reference for the programming language itself? I have messed around with interface builder a bit and really like how easy it is to mock up the design, but the actual code logic is beyond me at this point and I would like to get deeper into it.

Rod,
there is no single book to teach you both. I would recommend the following books:
1. Programming in Objective C by Stephen Kochan
2. Cocoa: Programming for OS X by Aaron Hillegass
After reading them, you will decide if you need a book on XCode itself.
I am afraid C++ is a different kind of animal and you will need different books.
Mihalis

Similar Messages

  • How learn to program in xcode 5.0?

    Hi everybody
    I would like to start programming in xcode, but i don't know any other programming language yet.
    I once bought a book to learn it all at once (objetive c with xcode) but it was dated and it was for an old
    Version of xcode.
    Now i wander if i should learn the old xcode 4, or  start at once with xcode 5?
    If you also have good tips for (e.g. Good (free?) guides, or books, or ibooks, or videos...) i would really
    Appriciate it if you could share your experienced thoughts with me!
    (I apologize for my typingmistakes, but i speak Dutch as first language)
    Thank you very much!

    Have a look to the Mac Developer Center (developer.apple.com). There you will find a complete Mac Developer Library with lots of documents. Reading the "Getting Started" section is the best initial step to get a general knowledge.
    More specific help can be found on the programming guides, always on the Developer Library (in the "Guides" section).
    If you need a general overview on Objective-C, I suggest you to read the following book:
         "Become An Xcoder - Start Programming the Mac Using Objective-C" by B. Altenberg, A. Clarke and P. Mougin.
    It's an extremely simple and basic text, but very clear and useful at the beginning.

  • Need a way to inventory Mac programs and corresponding serial numbers

    My boss is a Windows guy & doesn't know what he's doing. Therefore, he insists there's a way out there to inventory all of our office's Macs & generate a list of programs and corresponding serial #s. Is this possible? How?
    In his perfect Microsoft world, this would create an Excel sheet.

    If you've purchased and configured Apple Remote Desktop, then use the Application Usage Report feature -- gives a list of apps and how frequently they are used (in case you want to reigh in licenses).
    A cheap alternative, of course, is to create an admin account on each machine and use 'ssh' to run system_profiler on each machine. e.g. 'system_profiler -detailLevel full SPApplicationsDataType'. You get responses like this (you can request an XML format too):
        Microsoft Word:
          Version: 14.1.2
          Last Modified: 6/15/11 10:05 AM
          Kind: Intel
          64-Bit (Intel): No
          Get Info String: 14.1.2 (110505), © 2010 Microsoft Corporation. All rights reserved.
          Location: /Applications/Microsoft Office 2011/Microsoft Word.app
        TextEdit:
          Version: 1.6
          Last Modified: 6/29/09 9:00 PM
          Kind: Intel
          64-Bit (Intel): Yes
          Location: /Applications/TextEdit.app
        Network Utility:
          Version: 1.4.6
          Last Modified: 6/25/09 5:20 PM
          Kind: Intel
          64-Bit (Intel): Yes
          Get Info String: Version 1.4.6, Copyright © 2000-2009 Apple Inc. All rights reserved.
          Location: /Applications/Utilities/Network Utility.app
        Google Chrome:
          Version: 12.0.742.122
          Last Modified: 7/8/11 8:30 PM
          Kind: Intel
          64-Bit (Intel): No
          Location: /Applications/Google Chrome.app
    ... just a PERL script away from being a spreadsheet.

  • TS1702 how can i up load a program from my pc to my i pad  ? do i first have to upload it to I tunes (its a mac program) or is there a plug in that has a usb on one end and apple plug on th other?  i wnat to upload filemaker Pro for Mac to my i pad

    Hello guys and thanks for trying to help me.  I want to upload Mac programs that i have saved on my pc to my I Pad (the latest one) and do i have to upload it first to I Tunes and then down load it to the ipad and if so how do i do that (upload to i tunes)
    Second, is there an Apple adapter ( i have off brand ones fro China that don't work and i was told they would. also one from a company in he US and it doesn't work)
    One big question, if i upload (after you tell me how) FileMaker Pro Adv Mac to the I Pad can i create run time solutions from the ipad as if it were a laptop or computer or air book??? becuase that is the main reason i purchased the I Pad.
    i really would like to get to use the i pad but don't know the first thing about Macs..
    Norman  (reach me at [email protected])

    No, Mac programs and applications do not run on the iPad. an iPad is not a laptop. It can run only programs designed specifically for it and that are available only through the App Store.
    Ipads are geared towards media consumption, not so much creation.
    Perhaps what you should have bought is a MacBook Air rather than an iPad.  A Macbook Air is a fulll laptop, than runs a full MacOsx and can run File Maker Pro.

  • What is the best program and/or method to have crisp clear text in FCP?

    What is the best program and/or method to have crisp clear text in FCP?
    I have the CS4 Production suite.
    Thanks

    What is the best work flow to use? For example creating text in Motion, AE, PS, or AI and then bringing it into FCP.
    I used Motion and the text looks jagged. I though Motion was vector based and I don't understand why the edges aren't crisp and smooth.
    I'm just starting to learn these programs and want to create good working habits.

  • Newbie help: learning programming on xcode

    Hi all!
    I'd like to start learning programming either in java as well as in C using my mac. So i've downloaded Xcode on my PB g4 10.3.9.
    I know there's a lot of tutorials online on java and C, and that's fine. The hardest thing, that i really cannot solve by myself alone, it is figuering out how to manage all files that I need to use for programming on Xcode.
    My question is:
    Is there a book somewhere, on amazon or free or wherever, where i can find a tutorial explaining step by step programming java or C using Xcode?
    So i can learn the programming tips and also how to manage them on Xcode, using my mac.
    Thank you for the attention
    Tom
    power book g4   Mac OS X (10.3.9)  

    C is a good first language because many other languages are based on it or similar. There's lots to learn with "just text," meaning applications that don't have buttons and windows and graphical user interface items. You learn about variables, constants, arrays, loops, conditionals, functions, pointers, data types, recursion, algorithms like searching and sorting, etc.
    You also might find a community college class or some other class that teaches beginning programming.
    The next thing to learn is some object oriented programming. C is not an object oriented language. Java, C++, and Objective-C are object oriented languages. Objects are are things that have instance variables (variables like ints or doubles or whatever that are inside the object and not so accessible to the rest of the program) and methods (functions that just work for that kind of object.)
    You might ask, well why not learn an object oriented language to begin with? You can, but it may be easier to learn basic stuff in a language like C first. Both C++ and Objective-C are supersets of C, meaning they include all of C and add some more. Java is very C like and adds more.
    If you're heading towards writing mac programs using Cocoa, Objective-C is good to learn because it is the most natural language for writing Cocoa programs.
    Then you can get a Cocoa book, like the one by Aaron Hillegass and learn about Cocoa. Cocoa includes buttons and windows and is not "just text."
    After you have learned so much about a computer language or two or three, it may be surprising that an API (application programming interface) like Cocoa is way bigger! No one can memorize it all. So you look stuff up in the documentation and search the internet and make little experiments to figure things out.

  • Best book(s) for learning modern Mac programming?

    I studied some programming long ago (Fortran/BASIC/Pascal) and I did some in the early years of the Mac with Microsoft BASIC and Think Pascal. I would like to learn C/C++/Objective-C/Cocoa. What are the best books?
    I need to bridge the large gap between the old-style programming and the modern object-oriented approach, and I need to learn the proper syntax for the C-family of languages. Unfortunately, I live in a remote small town, so browsing the programming texts in a library or bookstore is not an option.

    If you install the XCode Tools there will be a fairly large amount of html based documentation installed along with the tools. While but bulk of the documentation is related to specific progamming topics and APIs there's also some introductory material.
    If you go to the Cocoa section and select "Getting Started" you'll find some basic information about Object Oriented programming as well as the Objective-C language. This documentation may not provide the level of detail you're looking for to fully grok the differences between C-based syntax and the languages you're familiar with or between procedural programming and OOP but it might serve as a good (and free!) starting point.
    If you've done programming in the past then you'll already know some of the general concepts that a true beginner would have to overcome. But, for me, making the jump from procedural languages (Pascal and then C) to OOP (first C++ and now Cocoa) and using Object-oriented frameworks (first MacApp and now Cocoa) was fairly painful. There is a slightly different mindset involved in object oriented programming. A large part of the struggle is that you'll probably be trying to learn not only OOP concepts and the syntax of the language but also an entire framework of objects and how to use them in your programs. Just try not to get too frustrated or bogged down with the frameworks themselves.
    Start small and try to understand the syntax and messaging concepts. Pick a few objects from the Cocoa frameworks and start working with them. Build some of the small example applications that come with XCode, set some breakpoints in the source and run them in the debugger to see how they "flow". Eventually more and more of the frameworks will begin to make sense.
    Steve

  • Conflict between program Mac mail and program Microsoft Outlook e-mail???

    Denmark, Kolding, 30th of September 2010
    A conflict between program Mac mail and program Microsoft Outlook e-mail?
    For several months tried to discuss and resolve with several Apple specialists/support, but without much luck.
    Therefore I have discussed these issues with 2 different and independent Mac users to find out in testing other Mac users will have the same problems as outlined in the below mentioned situations.
    I will therefore outline the coverage issues, as mentioned, including occurs on my iMac 21.5 " with serial number: <Edited by Host> and 2 friends with their Macbooks of new dates as follows:
    1. Sending from my Mac plain mail as "plain text "(during formatting):
    Plain text mail as "Plain Text "(during formatting) Verdana font size 10, sent and received on Windows PC with the correct letter size - but with the font changed to Century Gothic!!!
    2. Sending from my Mac plain mail "formatted text" (during formatting):
    Eg. with my signature/signature-colored types and Verdana as font and size 10, possibly with underlining and italics in the text dispatched - the mail received as text with New Times Roman size 12 and signing /signature color Verdana now in size 13.5!!!!
    3. Sending plain mail "as normal text "(during formatting)
    In the mail text underlined and made bold - the program asks whether to convert to RTF format (to keep underlining, bold, etc.) and Verdana as font and size 10, YES - this mail is received on the Windows PC as text with New Times Roman with the desired underlining and bold text and size 12!!!!
    4. Plain text mail as "formatted Text"
    Eg. with signature / signature-colored types and Verdana as font and size 10, possibly with underlining and italics in the text sent - received as text with New Times Roman and signing / signature as colored Verdana now in size 13.5!!!
    5. Sending mail with file attached:
    After producing a normal text document modified to PDF and directly from the Adobe Reader sent this PDF file in e-mail formatted as normal text with font Verdana 10 point, with signature. This is received on the Windows PC with a PDF file OK, but the font of the mail text is changed to Century Gothic and missing signature. Signature is available as an attachment on the Windows Outlook e-mail program as a ATT00113.text file. This can be opened and there is the missing signature!
    6. Sending e-mail with photos directly from iPhoto
    iPhoto opens and click on the desired photos eg. 5 pcs. (Exactly as mentioned in the demo video!) and click on the e-mail icon at iPhoto and the program opens and e-mail that is opened with the attached photos and rich text is being used in the mail. Signature disappears and must be clicked on the mail by the sender.
    The mail is received with the attached pictures OK - text changed to Times Roman with the desired bold - though no signature and 5 pcs. Att0028.html files attached. These can be opened and contains the file number each picture!
    The above problems can be partly avoided by the following:
    1. Only send mails as plain text
    Without any underlining, attachments, etc.. When the Windows PC Outlook receiver opens the mail where only the text fond is changed!!
    2. Sending mail with attached file
    Start opening the mail program and use formatted plain text first and then attach (with the staple) file, and the Window receiver will get the file, but text and signature changed to Times New Roman size 13!!
    3. Sending mail with photos from iPhoto
    Start by opening mail program text in Verdana 10 and click the Photo Browser and find (look for - takes its time!) the pictures you want to send and pull/drag them into the mail and send, - images, text and signature are in the mail on Windows PC - but with the font changed to Century Gothic!!!
    If sent as formatted text with various underlining, italics, etc. together with the photos will be received OK - but the writing is now New Times Roman size 12 signatures Verdana now in size 13!!!
    I must say – I am disappointed with the Mac mail program – it actually means that sending a perfect mail with underlining, colours, a.s.o. also photos directly from iPhoto – will received at a Windows computer in a totally mess.
    Looking forward to some good news from either Mac supporter or some clever Mac users who can help me to adjust my Mac to avoid these problems IF POSSIBLE!!!!.
    Apple/Mac is too good a product to make these problems!!
    Best regards
    Peter Larsen
    <Edited by Host>

    Welcome to Apple Discussions!
    The PC sets the font on its side, the Mac does on its side for plain text. There is no "font size" in plain text coding. Rich Text gives you a bit more control, but only if both e-mail clients support it. HTML gives you a bit more control, but only if both e-mail clients support it. Use the asterisk, parenthesis, underscore, or any keyboard symbol that is part of the original ASCII. Otherwise, the chance is nobody else will be able to read it who does not have your e-mail client in the same version.
    Sadly there are no e-mail standards except MIME for attachment, and even that isn't universally supported. E-mail is not the ideal medium for anything except plain text that is ASCII. To learn more about ASCII, see:
    http://en.wikipedia.org/wiki/ASCII
    If you want to post a website that is universally understood, see the hints here:
    http://www.anybrowser.org/

  • Using Terminal in Mac OSX to program and test java

    I bought a book on java and it says I should not use a JDK like Net Beans when first learning java.
    Right or wrong I would like to know how to use terminal to program and compile simple scripts.
    So my question is:
    How do you go about setting up the computer to use terminal to write and compile a java program? I know my Mac sees java in terminal because tells me Im running "version 1.5.0_07"
    I just need a link to some info on how to get started using Terminal for my command line with java.
    I think if I could get a path set up from the command line to my text file and have javac see it I would be in pretty good shape. At least for now.
    If I use a text saved plain text file (.java) how do I set up a path to it using javac from the command line?
    Where can I find or link to this kind of info?
    Macbook Pro Mac OS X (10.4.10)

    ayusman_dikshit wrote:
    Hi,
    seems like you have not tried out a few things.
    1. Set up the JAVA_HOME environment variable. (I assume you pretty much know it) the folder where java is installed.
    2. set up the environment variable to point to the bin folder inside the java installation folder.
    3. open up a console (it seems from your post you know it.), type java -version see the java version.
    4. type in javac, press enter: you should get the javac options.
    5. type in java, you should see the java options.
    Write your programs in a text editor, save it as somename.java.
    open a console, change to the directory containing the java file.
    type: javac somename.java <PRESS ENTER>
    you should get the compilation errors if any.
    if not
    type in: java somename.java
    Hope this helps.
    Regards,
    AyusmanStep 1 and 2 are generally not needed. Mac OS X comes with Java configured up and running right out of the box.

  • I just upgraded to Lion 10.7.2 and it says that it will not support Power PC programs so my 2008 version of Mac Office and Intuit Quickbooks are blanked out.  I need these programs.  How do I proceed?

    I just upgraded to Lion 10.7.2 and it says that it will not support Power PC programs and has blanked out my 2008 version of MS Office for Mac and Intuit's Quickbooks.  How do I proceed to get these programs back?

    Upgrade to newer versions compatible with Lion or downgrade to Snow Leopard:
    Downgrade Lion to Snow Leopard
    1.  Boot from your Snow Leopard Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner 3.4.1.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.

  • I'm a new mac user and need to program future email's. How can I do that? in outlook I can make a change in the date that the email will be sent. How I do that in mail?

    i'm a new mac user and need to program future email's. How can I do that? in outlook I can make a change in the date that the email will be sent. How I do that in mail?

    There isn't a way directly in Mail.
    Here's what google says: http://www.google.com/search?client=safari&rls=en&q=mac+os+x+mail+delayed+send&i e=UTF-8&oe=UTF-8

  • HT201250 my mac froze on a grey screen after i tried to login so i tried a safe boot, but now  i am stuck in the startup utilities program and i cant get out of it

    My mac froze and wouldnt startup because it was forced to sleep while a complex program was running, and simply ended up on a blank grey screen, and this happened upon every startup. so then i tried to use a safe boot but this ended me up on the startup utilities thing. i have realised that none of the options: restore from time machine backup, reinstall osx mountain lion, and repair disk are available to help me startup, and i cant select a startup disk either as it says none are available. so i am stuck on this program and it reapears every time i restart or shutdown and reboot, so i cant do anything. Please is there any way i could either quit startup utilities or get back to my computer desktop as i have lots of non-backed up image and video files that i cant afford to lose. please help!

    Maybe this will help.
    Startup Grey Screen

  • I partitioned a small drive for a windows program, and now the computer only wants to boot to Windows.  How do I get back to Mac so I can have a choice of drives?

      I partitioned a small drive for a windows program, and now the computer only wants to boot to Windows.  How do I get back to Mac so I can have a choice of drives?

    That doesn't sound good. It sounds like the power outage might have corrupted the partition for OS X. I would suggest booting from the Install DVD that came with your Mac while holding down the C key. Once you have selected the language start up Disk Utility from the pull down menu and repair the disk. Once you have done that then repair permissions also.
    Allan

  • I transferred/migrated my files from my old 08 macbook 13" notebook to my new Macbook pro and now my Adobe programs and Microsoft for mac are not working. do I have to reinstall the programs?

    I have recently purchased a new macbook pro, I had a macbook 13" notebook from 2008 and I trasnferred all of my files using the migration assistant. It said the transfer was completed and everything looked fine. but when I try to open my CS4 photoshop, illustrator, indesign or my microsoft for mac programs they crash. did the files not transfer correctly? do I have to reinstall them? do I need to wipe my mac and start again to clean out all of the transferred files?

    If you still have your old MacBook, You can put the software installers in and image the discs using isk Utility and then copy them to your new MacBook Pro via a flash drive and install them from the disc images.
    Another option is that you can connect it to your new mac in target Disk mode.  Then you can use the DVD drive that is in the MacBook to install  the software.  To do  this you would need a firewire cable plugged into your old MacBook and connect that to a Firewire to Thunderbolt adaptor that is connected to your new MacBook Pro.
    Create a disk Image: https://support.apple.com/kb/ph5841
    How to use Target Disk Mode:https://support.apple.com/kb/ht1661

  • I have a Mac computer and am trying to use a Photoshop CS4 program, but after accessing my desktop files through Adobe Bridge and clicking twice on any of the pictures to get into Photoshop,  instead of entering photoshop I get an enlarged version of the

    I have a Mac computer and am trying to use a Photoshop CS4 program, but after accessing my desktop files through Adobe Bridge and clicking twice on any of the pictures to get into Photoshop, instead of entering photoshop, I get on the lefthand side an enlarged version of the picture with red, yellow and green buttons on top. Any suggestions on what is wrong, or what can be corrected ?

    And there is the problem. Your pictures are opening up in Mac's own Preview app.
    Do you want all your jpegs to open in Photoshop, or only when you are in Bridge?
    Selecting a program to open a certain file is called: File Type Association.
    You can choose this at the MacOS level or the Bridge level.
    Here's how to do both:
    Either MacOS or Bridge has the wrong app associated with the jpeg. Let's start with MacOS
    Close Bridge and Preview. Select one of your jpegs, and press Cmd i, That will bring up the file info window.
    Go down to the "Open with" section of File Info.
    Choose Photoshop CS4 and click on the Change All... button to apply this choice to every jpeg on your Mac.
    Then open Bridge and see if double-clicking opens it in Photoshop.
    Now that means all jpegs on your Mac will open in Photoshop.  Maybe you don't want that.
    You can set your jpegs to open in Preview when Bridge is closed.
    When you open Bridge, there is Preferences > File Type Associations where you can direct Bridge to open the jpegs in Photoshop when you are viewing in Bridge.

Maybe you are looking for