• 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: Removing Applications from the Dock Programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing Applications from the Dock Programmatically


  • Subject: Re: Removing Applications from the Dock Programmatically
  • From: "Sherm Pendley" <email@hidden>
  • Date: Wed, 27 Aug 2008 00:23:39 -0400

On Tue, Aug 26, 2008 at 9:20 PM, Graff <email@hidden> wrote:
>
>        NSDictionary *theError = [[NSDictionary alloc] init];
>
>        [quitScript executeAndReturnError:&theError];

You're leaking the dictionary you created here. Just initialize
theError to nil, like this:

    NSDictionary *theError = nil;
    [quitScript executeAndReturnError: &theError];

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________

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

References: 
 >Removing Applications from the Dock Programmatically (From: Kevin Kicklighter <email@hidden>)
 >Re: Removing Applications from the Dock Programmatically (From: Graff <email@hidden>)

  • Prev by Date: Re: Removing Applications from the Dock Programmatically
  • Next by Date: Re: NSTableColumn not usable with binder of class NSTextValueBinder?
  • Previous by thread: Re: Removing Applications from the Dock Programmatically
  • Next by thread: Re: Removing Applications from the Dock Programmatically
  • Index(es):
    • Date
    • Thread