• 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
Re: Collection of Cocoa & objc questions from a "newbie"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Collection of Cocoa & objc questions from a "newbie"


  • Subject: Re: Collection of Cocoa & objc questions from a "newbie"
  • From: Markus Hitter <email@hidden>
  • Date: Tue, 17 Jul 2001 12:59:15 +0200

Am Dienstag, 17. Juli 2001 um 06:35 schrieb tyler:

Then you are not explicitly releasing your dotview object.

Actually, I'm not explicitly creating it so I figured that the loadNib or whatever that did the creation would take care of disposing of the view when the window (?) was disposed of. Am I incorrect in this?

In the simple case, your nib gets loaded when the App launches and gets unloaded when the App finishes.

When the App is about to finish, there's no point in releasing resources (memory). If you want to clean up additional things like temporary files, I'd use NSApplications -applicationShouldTerminate or something in this area.


2) If I set breakpoints in the DotView custom View I see that several
methods are called twice (awakeFromNib and initWithFrame in
particular). It appears the the "self" value in the debugger has
changed

Sounds like you have actually two views. Did you perhaps duplicate you view by accident?


Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/


References: 
 >Re: Collection of Cocoa & objc questions from a "newbie" (From: tyler <email@hidden>)

  • Prev by Date: Problem with Services
  • Next by Date: Re: Collection of Cocoa & objc questions from a "newbie"
  • Previous by thread: Re: Collection of Cocoa & objc questions from a "newbie"
  • Next by thread: Re: Collection of Cocoa & objc questions from a "newbie"
  • Index(es):
    • Date
    • Thread