• 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: Adding NSMenuItem in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding NSMenuItem in IB


  • Subject: Re: Adding NSMenuItem in IB
  • From: Jonathan Hess <email@hidden>
  • Date: Mon, 1 Jun 2009 12:46:11 -0700


On Jun 1, 2009, at 2:59 AM, Vijay Kanse wrote:

Sorry for My Question,
Actually i was dragging NSMenu from Library and I was trying to Add it as
Sub Menu.

Ah, the problem here is that NSMenu instances contain an array of NSMenuItem instances. NSMenuItem instances can each contain a single NSMenu.


The hierarchy of a main menu would look something like this:

NSMenu (Main Menu)
	NSMenuItem(File)
		NSMenu(File)
			NSMenuItem(Open)
			NSMenuItem(Save As)
			…
	NSMenuItem(Edit)
	NSMenuItem(View)

Jon Hess



Thanks For guiding me right way.


On Mon, Jun 1, 2009 at 2:49 PM, Kyle Sluder <email@hidden> wrote:


On Mon, Jun 1, 2009 at 12:39 AM, Vijay Kanse <email@hidden >
wrote:
I am not able to drag NSMenu to main menu. and i am not able to do it by
coding as well.

Really? There's an Edit menu in the IB library which you should be able to just drag to the main menu in your MainMenu.nib. If this isn't working for you, please explain exactly what you're trying to do.

--Kyle Sluder

_______________________________________________

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


References: 
 >Adding NSMenuItem in IB (From: Vijay Kanse <email@hidden>)
 >Re: Adding NSMenuItem in IB (From: Kyle Sluder <email@hidden>)
 >Re: Adding NSMenuItem in IB (From: Vijay Kanse <email@hidden>)

  • Prev by Date: Re: About "[super dealloc];"
  • Next by Date: Re: Several Questions
  • Previous by thread: Re: Adding NSMenuItem in IB
  • Next by thread: NSTableView - setting row heights
  • Index(es):
    • Date
    • Thread