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

Re: Disappearing NSStatusItem


  • Subject: Re: Disappearing NSStatusItem
  • From: BravoBug Software <email@hidden>
  • Date: Fri, 25 Sep 2009 16:30:20 -0700

Make sure you're properly -retain'ing it. Just because you have an
ivar pointing to it doesn't mean it will stick around after
GC/autorelease pool releases stuff. You'll need to explicitly -retain
the NSStatusItem since NSStatusBar does not.


On Fri, Sep 25, 2009 at 11:21 AM, Jacob Schwartz
<email@hidden> wrote:
> Hello again,
>
> After making headway on my first cocoa app, I have run into an issue. I have
> created a NSStatusItem in my class called Application.m. When I run, the
> icon appears in my menubar but then disappears and becomes ineligable to
> click. I read something somewehere about thr garbage collection taking it
> away but I have it saved as an instance in my class so Im out of ideas. I
> also read about the AppDelegate class that is made for me when I make a new
> project but I don't know how to use that. Fail. Anyway thanks again
> everyone.
>
> -Jake
> _______________________________________________
>
> 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
>
_______________________________________________

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: Disappearing NSStatusItem
      • From: Bill Bumgarner <email@hidden>
References: 
 >Disappearing NSStatusItem (From: Jacob Schwartz <email@hidden>)

  • Prev by Date: Re: Correct way to tell if a path is to a .bundle?
  • Next by Date: Re: Disappearing NSStatusItem
  • Previous by thread: Disappearing NSStatusItem
  • Next by thread: Re: Disappearing NSStatusItem
  • Index(es):
    • Date
    • Thread