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 <jakehschwa...@gmail.com> 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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/bravobug%40gmail.com > > This email sent to bravo...@gmail.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com