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

Re: Chaging NSStatusItem menus.


  • Subject: Re: Chaging NSStatusItem menus.
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 25 Feb 2008 16:58:25 -0500

>  - (void)quitItunes:(id)sender
>  {
>         [[NSNotificationCenter defaultCenter] removeObserver:self];
>         [iTunes quit];
>         iTunesQuit = [[NSMenu alloc] initWithTitle:@""];
>         qOne = [iTunesQuit addItemWithTitle:@"Start Watching iTunes Again"
>  action:@selector(beginWatching:) keyEquivalent:@""];
>         [barItem setTitle:@"Start iTunes"];
>         //[barItem setAction:@selector(beginWatching:)];
>         [barItem setMenu:iTunesQuit];
>         //[[NSApplication sharedApplication] terminate:self];

  This is a little hard to follow without further explanation, but are
you sure barItem is a valid pointer? If it's an IBOutlet, are you sure
it's connected? That's the very first thing that comes to mind. Does
the title change when you tell it to change to "Start Watching iTunes
Again"?

--
I.S.
_______________________________________________

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: Chaging NSStatusItem menus.
      • From: Jeremy <email@hidden>
    • Re: Chaging NSStatusItem menus.
      • From: Jeremy <email@hidden>
References: 
 >Chaging NSStatusItem menus. (From: Jeremy <email@hidden>)
 >Re: Chaging NSStatusItem menus. (From: August Trometer <email@hidden>)
 >Re: Chaging NSStatusItem menus. (From: Jeremy <email@hidden>)

  • Prev by Date: Re: NSInvocation question
  • Next by Date: Re: How do copy:/past: messages get sent to NSDocument?
  • Previous by thread: Re: Chaging NSStatusItem menus.
  • Next by thread: Re: Chaging NSStatusItem menus.
  • Index(es):
    • Date
    • Thread