• 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: NSToolbar Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbar Problem


  • Subject: Re: NSToolbar Problem
  • From: j o a r <email@hidden>
  • Date: Fri, 1 Apr 2005 20:00:28 +0200


On 1 apr 2005, at 19.52, Julian Cain wrote:

- (void)dealloc {
    delete(_imageLeft);
    delete(_imageMiddle);
    delete(_imageRight);
    delete(_imageLeftPress);
    delete(_imageMiddlePress);
    delete(_imageRightPress);
    delete(_imageLeftRoll);
    delete(_imageMiddleRoll);
    delete(_imageRightRoll);
    delete(_badge);
    [super dealloc];
}

I don't see the point of releasing the shared images in your instance dealloc method. If they're not retained anywhere else, they will be deallocated, and no longer accessible for the remaining and future instances of your class.

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSToolbar Problem (From: Julian Cain <email@hidden>)
 >Re: NSToolbar Problem (From: j o a r <email@hidden>)
 >Re: NSToolbar Problem (From: Julian Cain <email@hidden>)
 >Re: NSToolbar Problem (From: daniel <email@hidden>)
 >Re: NSToolbar Problem (From: Julian Cain <email@hidden>)

  • Prev by Date: Re: Scaling Fonts;
  • Next by Date: Re: NSToolbar Problem
  • Previous by thread: Re: NSToolbar Problem
  • Next by thread: Re: NSToolbar Problem
  • Index(es):
    • Date
    • Thread