Books to teach me C, Objective C, Cocoa help please

I want to teach myself Cocoa since I was told thats the best language to start with for a beginner OS X programmer. To do this I need to learn Objective C. To do that I need to learn C. Can someone tell me the best book for learning C, then Objective C, then Cocoa? I have a C book but ive hit a road block and I dont understand it so I dont think something I can use.. The C book is The C Programming Language Second Edition by Brian Kernighan and Dennis Ritche. My Cocoa book that I have is Cocoa Programming for Mac OS X by Aaron Hillegass.. the problem with my roadblock is this file copying program.. it doesnt do anything then the book gives me challenges.. well If my program does nothing then I dont know how to do the challanges which is determine the value of EOF (end of file) as 0 or 1, then print it:
#include <stdio.h>
int main (int argc, const char * argv[]) {
int c;
c = getchar();
while (c != EOF) {
putchar(c);
c = getchar();
return 0;
}

Fios89 wrote:
I dont know.. When I run the program.. the log opens and the program runs.. but nothing is appearing in my Log. And my Book said its a file copying program.. not what im calling it.
In C, input and output are considered to be files, so you could sort of consider it to be a file copying program in that sense. If you ran it in the Terminal, you could use it to copy files by using input and output redirection.
$ yourProgram <input >output
But that's neither here nor there. The thing is, the K&R book on C isn't really the best introduction for a beginner. It's a great book for a more experienced programmer who wants to learn C, but for a beginner, you'll need something more basic.
I thought the Xcode libraries had its own guides and stuff to learning C Obj C and whatever..
The Xcode documentation does include information for learning Objective-C if you are already proficient with C. It does not include anything on learning C. The information on Objective-C is meant for experienced programmers, not someone who is new to programming.
My advice would actually be to start with a language other than C if you want to learn how to program. Scheme is an excellent language to learn on, but it can be a little tough if you're not taking a class on it; if you're feeling ambitious, you can try reading The Structure and Interpretation of Computer Programs, which can be found here: http://mitpress.mit.edu/sicp/full-text/book/book.html. This is how I learned to program, and it gave me the background to easily learn the other languages you need.
If you're not feeling quite as ambitious, or if you want to get started doing Cocoa programming as soon as possible, Ruby and Python are both pretty decent languages. They're much easier than learning C and Objective-C, and they have pretty much full access to all of the Cocoa programming interfaces on Leopard. I prefer Ruby myself, but some like Python better.

Similar Messages

  • I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box , as I can see on my classroom book and in many tutorial.any one can help please

    I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box ,where i choose what i want to import,  as I can see on my classroom book and in many tutorial.any one can help please ? thanks

    I have the same problem... but the photo library is neither on my iPhone or my Computer!! Please help.. its taking too much space.

  • Copy all properties from BOL Object to other, Help please

    Hello experts, Thanks for your time.
    I would like to copy all properties and object relations from BOL OBJECT To other.
    It's possible make it??
    I know to copy one by one properties with this code.
    lr_part->set_property( iv_attr_name = 'e_mailsmt' iv_value = ET_ADSMTP-E_MAIL ).
    But I would like to copy the relations and all properties.
    Could you write an example complete code??
    A lot of  Thanks

    Hi,
    I suppose by copying relations it is meant that a whole Business Object should be copied. Not just the part of BTAdminH but the PricingSet and the related Prices in there, the ItemsSet and all related entries in them and so on. Meaning a complete copy of all attributes in all objects.
    Judging from a mere technical point of view I see some problems with that:
    1. Abab does not offer a copy object method. Thus you would have to create a new object and use the SET_PROPERTIES( ) method on it.
    2. Though you will be able to do it for one object, lets say BTAdminH, it will be a huge load to do it for all related objects.
    3. Considering a piece of code that will run down the hierarchy and copy the objects for you will not work as the "hierarchy" contains circles and is not unique. For instance the BTPartnerSet on OneOrders contains various relations containing the same partners.
    In my opinion use the underlying API not the BOL to copy entries.
    cheers Carsten

  • Can't find my book project after migration to iPhoto 09. Help please?

    I'd worked for many hours on a book project in iPhoto '07. Then I updated to '08 and now to '09. I can't find my book project listed anywhere. Is there a way to get it back? Many thanks. Robinbigbird.

    Welcome to the Apple Discussions.
    You backed up before each of those updates, of course? So the simple thing is to restore from one of those.
    When you updated, what exactly did you do? Did you import a Library to a new iPhoto?
    Regards
    TD

  • I need to synch my address book from my iPad to my mac?  Help please

    Hello,
    I need to synch my address book from my ipad to my mac.  for some reason they are not aligned and I have contacts in my ipad that are not in my mac address book.  Cab someone pelase help me.  It will not do it through itunes.  Is there another way?

    Do you have your iPad set to sync? Plug your iPad into you computer then launch iTunes, click on your iPad in the left window then click the info tab, check to make sure the tab is set to sync with your address book. 

  • I have had my iphoto crash twice whilst nearing the end of making a photo book. Are these books lost and do I have to start again? ):  I cant find the folder in iphoto on the time capsule. Folder from which the book was being made is now empty? help pleas

    I have had my iphoto crash twice whilst nearing the end of making a photo book. Are these books lost and do I have to start again? ):  I cant find the folder in iphoto on the time capsule. Folder from which the book was being made is now empty? help please Using IMAC OSx

    Hi shldr2thewheel,
         it has been a while since we have last spoke, I would like to let you know, I am still working on getting used to the switch from windows to a Mac/Apple system. I do have a new question for you, I did purchase In Design CS5.5 through journeyed.com through Cuyahoga Community College of which I attend as a student, is there a way to purchase an online book through iTunes to learn that as well? Also, you know me, the struggling student, I would also, when and if the book can be purchased through the iTunes, would need to know if you do know of a much easier book for struggling students like myself and at a reasonable price as well for the In Design CS5.5 program. Our campus bookstore had closed early, and, so did the colleges library and our local library here where I do live, so, I cannot go to either place to purchase a book or to take out a book, plus cash funds are low at this moment as well but, I do have money left on the iTunes account to use, if it can be used. So, can it be used, the iTunes money, towards finding a low priced online book? I am in great need of assistance as I have a project due for my one course for this Tuesday, September 4, 2012.
    Sincerely in need of help once again,
    Kim

  • Teaching SAP Business Objects Business Intelligence

    Hi
    I have just created a blog which discusses some of the options in regards to teaching BI.  It identifies some of the resources which maybe helpful.  It can be found at
    /people/paul.hawking3/blog/2011/04/10/teaching-sap-business-objects-business-intelligence
    Good luck
    Paul Hawking
    SAP Academic Program Director
    Victoria University
    Australia
    SAP Mentor

    Dear Prof Paul,
           Thank you very much for posting BI related materials.As a SAS Business Intelligence package user(SAS 9.1,Entreprose guide ,SAS OLAP CUBE Studio,Web report studion etc)   ,I will send my comments to you shortly .You may go through in your leisure .Definitely,the substitute facilties must be available in SAP .
    Regards
    Prof Jyotiranjan Hota,
    SAP Faculty ,KIIT School of Management ,
    Bhubaneswar ,Orissa,India

  • My Mac Book Pro was really slow at everything and would kick me out of my photos every time i got on them. now it won't even allow me to log on. i put my password in and the screen will flash white and go back to the login page. HELP please...

    My Mac Book Pro was really slow at everything and would kick me out of my photos every time i got on them. now it won't even allow me to log on. i put my password in and the screen will flash white and go back to the login page. HELP please...

    There is nothing wrong with your Dell, it will work fine with any MacbookPro. I have been using Dell displays for over 12 years with many different Mac models. I have two 21" Ultra Sharp displays working side by side to design a Keynote presentation right now.
    The issue your having is with the way Keynote  takes control of the video output to both displays, it sends the presentation signal to one and the presenter display to the other, this is set up in;
    Keynote preferences > Presenter display.
    If you want to show a wesite or another app on  either display,  use application switcher:
    press the the  command key on the keyboard, then the tab key; a row of applications will show what applications are running, choose which one you want to show. Use command  > tab to return to Keynote.

  • I have just tried to connect my Mac book pro to an LG Plasma TV via an iWires Mini DisplayPort to HDMI cable. All I get on my TV is the Mac wallpaper and nothing else. I am missing something really silly, could anyone help please.

    I have just tried to connect my Mac book pro to an LG Plasma TV via an iWires Mini DisplayPort to HDMI cable. All I get on my TV is the Mac wallpaper and nothing else. I am missing something really silly, could anyone help please.

    Hi there. I also bought an iWires mini Display port to HDMI cable and have an LG LED/LCD TV. I plugged it in to my MB Pro and followed the very small writing that came in the package and got both audio and video going. You need to change the audio settings from within System Preferences on your Mac to select your TV as the audio output.
    My concern is the data latency - do you experience a delay between moving your mouse on the MBPro and the TV displaying the movement? It is only a fraction of a second, but certainly enough to be annoying, especially in a cable as expensive as the iWire.

  • I have downloaded several books into ibooks.  Started reading one and closed it when I was done reading for the day.  Now I want to access other books and when I open ibooks it goes directly to that first book.  What can I do? Help please.

    I have downloaded several books into ibooks.  Started reading one and closed it when I was done reading for the day.  Now I want to access other books and when I open ibooks it goes directly to that first book.  It does not give me the shelf to choose what book I want to read - goes directly to the first book. What can I do? Help please.

    There should be a Library button on the top left. If not ap the middle of the screen to get it to appear.

  • I was given a replacement and told to set it up on itunes but now I cannot retrieve my address book, can anyone help please?

    I was given a replacement and told to set it up on itunes but now I cannot retrieve my address book, can anyone help please?

    a message appears saying that there is a problem with the windows installer.
    What's the precise text of the message please? (There's a few different ones I can think of that you might be getting.)

  • I am getting no signal to my dj mixer using m-audio firewire audiophile sound card connected to my mac book pro using Traktor Dj software can anyone help?

    I am getting no signal to my dj mixer using m-audio firewire audiophile sound card connected to my mac book pro using Traktor Dj software can anyone help?
    The firewire port reads the dj software and I can hear music playing through the sound card when I plug my headphones into it but there is no signal to the hardware (my dj mixer).
    I have reset the firewire by turning off my mac book pro for a few hours and can see the sound card device in the fire wire section after clicking on the apple icon on the top left corner of my mac.
    My dj mixer works on another mac computer with the same soundcard and different firewire cable.
    Hope someone can help
    Thanks
    Wayne

    kmiddlet88,
    yes, it could be due to nearly anything listed in your kernel extensions, startup items, launch daemons, launch agents, or user items above. Please check all of your installed third-party software to make sure that the versions which are installed on your MacBook Pro are compatible with Mavericks; uninstall every software package which isn’t Mavericks-compatible. After you’ve done that, boot into Safe mode, and see if you still get the beach ball of doom there. If it doesn’t appear there, restart normally and see if it appears then.

  • Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help

    Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help if you've the knowledge.
    Many Thanks

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • Does making objects equal null help the gc handle memory leakage problems

    hi all,
    does making objects equal null help the gc handle memory leakage problems ?
    does that help out the gc to collect unwanted objects ??
    and how can I free memory avoid memory leakage problems on devices ??
    best regards,
    Message was edited by:
    happy_life

    Comments inlined:
    does making objects equal null help the gc handle
    memory leakage problems ?To an extent yes. During the mark phase it will be easier for the GC to identify the nullified objects on the heap while doing reference analysis.
    does that help out the gc to collect unwanted objects
    ??Same answer as earlier, Eventhough you nullify the object you cannot eliminate the reference analysis phase of GC which definitelely would take some time.
    and how can I free memory avoid memory leakage
    problems on devices ??There is nothing like soft/weak reference stuffs that you get in J2SE as far as J2ME is concerned with. Also, user is not allowed to control GC behavior. Even if you use System.gc() call you are never sure when it would trigger the GC thread. Kindly as far as possible do not create new object instances or try to reuse the instantiated objects.
    ~Mohan

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

Maybe you are looking for

  • HI, Im using Iphone 4 and i recently got my IOS updated to IOS7 and  now im getting the error message as "PDP authentication failure" Im using Aircel carrier.

    HI, Im using Iphone 4 and i recently got my IOS updated to IOS7 and  now im getting the error message as "PDP authentication failure" Im using Aircel carrier. Please let me know how to fix this issue

  • Showing grid lines as dashed lines

    Dear All, i am using a waveform chart to plot my data .. i want to insert grid inside my chart . There are 3 different options for inserting grids in d chart .  is dere any way i can change the style of lines of grids ?? i want to see them as dashed

  • How to do multi-buffered acquisition on NI-6115

    I need to acquire multiple sequential arrays of data over a single channel using an external clock and a digital trigger (~1000 arrays total, 1000 samples/trigger, external clock frequency 500kHz, trigger frequency 250Hz). It is important that the sa

  • Internal Logistics Invoice - IR before GR.

    Dear All, I trying to post an Internal Logisitcs Invoice (in Company B)  generated via INVOIC02 IDoc triggered from Billing document of Selling Company A before any Goods Receipt is posted in Company B but all Invoices are created with zero quantity

  • Unix file problem

    Hi gurus,       I am creating program which reads the data from unix file  and print it. but i am having one major problem while reading that data. when i read the currency value from the file it displays #sign every time wht can i do to eliminate th