From Carbon to Cocoa
From Carbon to Cocoa
- Subject: From Carbon to Cocoa
- From: Tim Conkling <email@hidden>
- Date: Tue, 20 Jul 2004 15:57:01 -0400
As a new Cocoa developer, I'm having a bit of difficulty figuring out
how to do things the Cocoa way -- my brain is stuck in Carbon-land.
Trying to figure out how to programatically make an NSWindow visible,
for example, took me a long time -- I was looking for methods like
show:, makeVisible:, setVisible:, etc, until I finally stumbled on
makeKeyAndOrderFront:, which does what I want (well, it displays the
window) but has a name that confuses the heck out of me.
I'm wondering if someone has taken it upon themselves to write a "Cocoa
for Carbon Programmers" guide that describes the Cocoa method of doing
common things like displaying a window. Apple's Cocoa documentation is
great, but all of a sudden I feel like I did back when I was first
learning the Toolbox -- that is, it's hard for me to even know where to
look to find information on basic tasks.
Specifically, I'm currently trying to figure out the relationship
between NSWindows, NSViews, and CGContexts so that I can use Quartz
APIs (also new to me; I'm used to QD) to draw things into a window.
Thanks,
Tim
PS: I would like to search the cocoa-dev archives for answers to basic
questions like this, but Apple Mailing List Search, which has always
been obnoxiously slow for me, is now taking so long to complete a
search that it's exceeding Safari's 60-second timeout and thus failing
to work at all. Which is too bad.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.