Assuming the nib file is set up normally, with file's owner class
being set
to your controller, and its window outlet connected to the window, and
the
window's delegate outlet connected to it:
Wow, owner classes and controllers and outlets and delegates. What a
freakin' mess. Just to create a window. Looks like I need to start at
the beginning again. It's been too long since I went through Learning
Cocoa with Objective-C. Is that book now too old? Anything newer, better
that explains everything to true blue C++ lovers?
Like all frameworks, learning the paradigms can be a bit steep at times
(though wait to start learning about Bindings and Core Data for some
real fun) but once you grok them, you have amazing power in your hand.
Soon, you'll be coding at lightspeed and adding stuff in no time that
you didn't think could be possible. You'll quickly come over your
initial confusion and realize that Obj-C / Cocoa is sooo much better
than C++ (at least for what it's being used for).
Took me a couple years and a client who was going the full bindings &
core data route before really getting into it. Now I realize what I've
been missing...
Grab a copy of Aaron Hillegass' excellent "Cocoa Programming for Mac OS
X"[1] book, it's the best Cocoa course I could find (and very
entertaining too). I also have a copy of Anguish, Buck & Yacktman's
"Cocoa Programming"[2] brick, which covers a large number of topics in
decent details but doesn't cover more recent and crucial topics like
bindings.
You'll also need a good electronic reference. I use AppKiDo[3] all the
time, I get faster and easier access to Cocoa documentation than with
Xcode's built-in documentation (though this one has steadily improved
over the years).
--
Florent Pillet http://www.florentpillet.com
Software consultant - Mobile devices, desktop and server platforms
Windows+Mobile, Mac OS X, Palm OS Skype callto://florent.pillet
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden