• 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
NSMenuItem / NSMenu Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMenuItem / NSMenu Problems


  • Subject: NSMenuItem / NSMenu Problems
  • From: Jeremy <email@hidden>
  • Date: Wed, 9 Jan 2008 19:23:26 -0500

I have been programming in Cocoa for not a long time. It really isn't doing the best... for me right now. Here is my NSMenu problems:

Within my application, Tune-A-Holic, up until now I have been using it only to retrieve the information from iTunes and display it. The only function I have used is updateData: which was called within an NSDistributedNotifications call. My menu problems lie within expanding the application to have the ability to control iTunes from the menu.

My first problem lies within separation. I would like to separate any control items and non-information items from the information that is displayed at the beginning of the drop down. The look I want can be found within the Apple menu between Mac OS X Software and System Preferences. I have found no reference to a function to do this within NSMenu.

My second problem lies within the fact that I want to control iTunes. It is another adventure within Scripting Bridge that I want to mess with. Here is the problem I am having:

sOne = [subMenu addItemWithTitle:@"Item" action:nil keyEquivalent:@""];

I can't figure out how to use the action: part of this line. The NSMenu class reference mentions that this must be a selector, so I used @selector() but that doesn't seem to work.

Any help on either issue would be greatly appreciated.
_______________________________________________

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: NSMenuItem / NSMenu Problems
      • From: John Stiles <email@hidden>
  • Prev by Date: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
  • Next by Date: Re: NSMenuItem / NSMenu Problems
  • Previous by thread: Re: EXC_BAD_ACCESS when trying to use [NSMutableURLRequest setHTTPBodyStream]
  • Next by thread: Re: NSMenuItem / NSMenu Problems
  • Index(es):
    • Date
    • Thread