Objectively Speaking: A Crash Course in Objective-C

Discussion of the official tutorials published on raywenderlich.com. Please only discuss the official tutorials here - for general questions, use the General Discussion forum instead.

Re: Objectively Speaking: A Crash Course in Objective-C

Postby jbx72487 » Sun Jun 17, 2012 5:30 pm

hwt wrote:Nice introduction. Would however write:

[itemAtIndex setValue:@"DONE" forKey:@"category"];

instead of:

[itemAtIndex setValue:@"DONE" forKey:@"source"];

at the end, to avoid having the same quote shown more than once (otherwise it will just be shown again with 'DONE' as the source).

:?


I agree with hwt. I believe you meant to say category, since that's how the predicate filters the quote array.
jbx72487
n00b
 
Posts: 1
Joined: Sun Jun 17, 2012 5:27 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Objectively Speaking: A Crash Course in Objective-C

Postby iPoul » Tue Jun 19, 2012 1:07 pm

First of all, thanks for a great tutorial, learned alot from it.

But ... there is one thing that bothers me, and thats the SMNote UIDocument part,
how and when is it used, is it even required, i tried deleting it, and everything still works ? :)

Kind regards, iPoul
iPoul
Baby Hacker
 
Posts: 7
Joined: Tue Oct 04, 2011 10:13 am
Has thanked: 3 times
Been thanked: 0 time

Re: Objectively Speaking: A Crash Course in Objective-C

Postby derfner » Wed Jul 25, 2012 6:12 pm

This is very, very helpful, and gives me a lot of answers for an app I'm working on.

Any chance you could do a follow-up on how the user can add quotes to the array?
derfner
n00b
 
Posts: 1
Joined: Wed Jul 25, 2012 6:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Objectively Speaking: A Crash Course in Objective-C

Postby jameshofton » Thu Aug 16, 2012 2:28 pm

Thanks for creating this tutorial and also for all the other tutorials on this site. Its brilliant to have people giving their time to help others. I learnt alot

many thanks
jameshofton
Baby Hacker
 
Posts: 5
Joined: Thu Aug 16, 2012 2:26 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Objectively Speaking: A Crash Course in Objective-C

Postby Nithya » Wed Sep 05, 2012 7:21 am

Awesome start for the beginners!!
Learnt lot in single application :)

One doubbt on this:
Where that SMNote document file is used?

Thanks
Nithya
n00b
 
Posts: 1
Joined: Wed Sep 05, 2012 7:19 am
Has thanked: 0 time
Been thanked: 0 time

Re: Objectively Speaking: A Crash Course in Objective-C

Postby johnc1977 » Sun Sep 16, 2012 1:12 am

In your section titled "Heading in the Right Direction", second paragraph, second sentence should have the word monatomic changed to nonatomic. ;)
johnc1977
n00b
 
Posts: 3
Joined: Sun Sep 16, 2012 1:10 am
Has thanked: 0 time
Been thanked: 0 time

Re: Objectively Speaking: A Crash Course in Objective-C

Postby Hatchlv » Fri Sep 21, 2012 4:45 am

Doing the tutorial in Xcode 4.4 and the section to create a subclass with UIdocument, UIdocument isn't an option. Was this taken out in Xcode 4.4 or ami I missing something. I know they changed the "File Owners" location but I found that, but not able to find the UIdocument.

TIA

Allen

:? oops, just realized the pull down for the subclass was a longer list. Never mind.
Hatchlv
n00b
 
Posts: 1
Joined: Fri Sep 21, 2012 3:54 am
Has thanked: 0 time
Been thanked: 0 time

Options, Options, Options

Postby robhob » Thu Oct 11, 2012 11:53 am

Hello!

As so many have said, thanks for the great tutorial!

I'm a little more than halfway through and am having a problem. I'm at the point where I've added the if statement to quote_btn_touch. When I select Mine and press Quote it does nothing. If I debug the if statement, it looks like the Segmented Control isn't returning 2.

Any suggestions? I've attached my project if you've got the time to look.

Many thanks

Rob
Attachments
QuoteGen.zip
(44.09 KiB) Downloaded 146 times
robhob
n00b
 
Posts: 4
Joined: Thu Oct 11, 2012 11:45 am
Has thanked: 0 time
Been thanked: 0 time

Re: Objectively Speaking: A Crash Course in Objective-C

Postby selenoid » Sat Oct 13, 2012 12:06 am

Very elegant and well explained tutorial. Thanks for the effort. Keep up the good work. Respect!.
selenoid
n00b
 
Posts: 1
Joined: Sat Oct 13, 2012 12:04 am
Has thanked: 0 time
Been thanked: 0 time

Re: Objectively Speaking: A Crash Course in Objective-C

Postby aremvee » Sat Oct 13, 2012 10:56 am

robhob wrote:...
I'm a little more than halfway through and am having a problem. I'm at the point where I've added the if statement to quote_btn_touch. When I select Mine and press Quote it does nothing. If I debug the if statement, it looks like the Segmented Control isn't returning 2.


same here
( and my name is Rob too, maybe that's the go )
I"m playing around with NSLog in different places and self.quote_opt.selectedSegmentIndex is always returning zero regardless of the segment selected
I'll post what I find when i do

i've checked every character entry
and
i avoid pasting over from web pages as sometimes spaces are some high-numbered ascii character as opposed to %20
The sample downloadable code is more advanced again so i didn't use that either

there are a few errors i've noticed
Just above the Manual Labour graphic, there is some suggestion of an NS Mutable array;
"..This app is also going to store some famous quotes from movies. For this, you need a second array:.."

and I thought i had been done in spoiler alert type white text on white ground but no -
the same situation happened agin a little later on, but i cant find it right now

also doing exactly the instruction regarding plists just gave rise to corrupted file warnings
there needed to be a <dict\> somewhere at the top, not shown in your offering
I solved it by using Textedit to save out a separate file then use the File>Add FIle menu selection in Xcode

all these are no biggies, as it got me to turn some cogs in the old grey cells department

the biggest error is maybe in the title
"..A crash course in Objective-C" maybe should read " ..A course in Objective-C Crashes" :lol:

still very good, Linda
User avatar
aremvee
Hacker
 
Posts: 24
Joined: Sat Oct 13, 2012 10:35 am
Has thanked: 6 times
Been thanked: 0 time

PreviousNext

Return to Official Tutorials

Who is online

Users browsing this forum: Bing [Bot] and 2 guests