• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
cocoa newbie questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: cocoa newbie questions
      • From: James Bredijk <email@hidden>
    • Re: cocoa newbie questions
      • From: John Hörnkvist <email@hidden>
  • Prev by Date: Re: IB Tabview position changing
  • Next by Date: gcc errors
  • Previous by thread: Re: IB Tabview position changing
  • Next by thread: Re: cocoa newbie questions
  • Index(es):
    • Date
    • Thread