Re: Disappearing NSStatusItem
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