Re: Newbe Question: Searching Address Book
Re: Newbe Question: Searching Address Book
- Subject: Re: Newbe Question: Searching Address Book
- From: "Klaus L. Greulich" <email@hidden>
- Date: Wed, 3 May 2006 17:49:41 +0200
Hi Brad!
Am 03.05.2006 um 15:50 schrieb Brad Bumgarner:
Thanks for all the suggestions. Between the this suggestion to use
'componentsSeparatedByString:@" "' and the suggestions I got last
night, I KNOW I'll be able to put something together.
The thing about learning a new language, especially when dealing
with Obj-C and Cocoa is you REALLY don't know what you don't know.
I never would have known about the "componentSeparatedByString" if
it wasn't suggested.
Silly question here (or maybe not): do you ever get a feel for
everything that is provided you through Obj-C and Cocoa?
Short answer: Yes.
Long answer: You should read one or (better) a few books about Cocoa
Programming and ObjC. Try out the examples provided in these books
(not all of them, but those you find interesting) and modify them to
add functionality. Experiment with small projects. Read code written
by other developers (examples from Apple or OpenSource Apps written
in ObjC/Cocoa).
Try to understand OOP and Design Patterns. This is a process. My
experience is that the principles of OOP are not that easy to
understand that reading an OOP book on one evening is enough to get it.
But if you keep reading and coding, after a short period of time you
will understand.
For example: you have a String. You want to do something with this
string. Then first look into the NSString class (documentation).
You'll find many useful methods there.
With [filepath lastPathComponent] for example you get "test.txt" if
filepath is "/Users/brad/test.txt".
Or with [filePath stringByDeletingLastPathComponent] you get "/Users/
brad/". And so on ...
Cocoa is the most consistent framework I know (and I know a few, from
Java APIs over Qt (Trolltech) to PHP stuff). And - that is what many
developers say - you will get results faster using Cocoa than
anything else.
Klaus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden