• 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
Leak in NSSavePanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Leak in NSSavePanel


  • Subject: Leak in NSSavePanel
  • From: Jelle Vandebeeck <email@hidden>
  • Date: Wed, 25 Jun 2008 00:55:18 +0200

When I try to call the NSSavePanel, I always receive some memory leaks on it. I have no idea if they are bad or not so bad... I just can't find a decent tutorial on the Instruments tool.

This is the code that generates the memory leak from time to time:

NSSavePanel *savePanel = [NSSavePanel savePanel];
[savePanel setRequiredFileType:extention];
[savePanel setMessage:title];
[savePanel setExtensionHidden:YES];

It's the [NSSavePanel savePanel that gets the leak... I know the NSSavePanel is a singleton, so it should always use the same instance. Is that the problem when I try to call it multiple times in my application?

Thnx for helping :)

Jelle
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Leak in NSSavePanel
      • From: Corbin Dunn <email@hidden>
    • Re: Leak in NSSavePanel
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: SetControlReference equivalent in NSControl?
  • Next by Date: Re: Creating Installer Package from Cocoa
  • Previous by thread: Re: Core Animation: Disabling Implicit Animations
  • Next by thread: Re: Leak in NSSavePanel
  • Index(es):
    • Date
    • Thread