cocoa newbie questions
cocoa newbie questions
- Subject: cocoa newbie questions
- From: Lieven Dekeyser <email@hidden>
- Date: Mon, 5 Nov 2001 15:52:28 +0100 (CET)
Hi!
I just started writing cocoa/obj-c-apps in, and it's been a wonderful
experience so far. I'm never going back to carbon/c++ :-)
But there are still some things unclear:
- can anyone explain me the whole autorelease/release/retain thing? And
how do the Cocoa classes use them? when do you need to send release to an
object created by a cocoa class? for example:
NSArray * array = [NSArray arrayWithObject:@"foo"];
do you need to call [array release] at the end of the function? Or is the
array automatically released?
- I'd like to be able to drop files on my NSScrollView and add the file
paths (NSStrings) to it. How can I do that? The AppKit documentation is
not very clear... "description forthcoming" :-(
greetz & thanks,
--Lieven