• 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 - setting font size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMenuItem - setting font size?


  • Subject: NSMenuItem - setting font size?
  • From: nick briggs <email@hidden>
  • Date: Thu, 14 Apr 2005 12:57:06 +0100


All

I am adding a NSMenu to a NSSegmentedControl. I wish to set the font size for the NSMenu.

Is this possible?

My code is listed below.

Thanks

Nick

NSSegmentedControl *segControl= [[NSSegmentedControl alloc] initWithFrame:NSMakeRect(0, 0, 64, 32)];

...

NSMenu *menu = [[[NSMenu allocWithZone:[NSMenu menuZone]] initWithTitle:@""]autorelease];
NSMenuItem *menuItem;
menuItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:@"test" action:@selector(test:) keyEquivalent:@""];
[menuItem setTarget:self];
[menu addItem:menuItem];
[menuItem release];

...

[segControl setMenu:menu forSegment:0];
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Internet Connect Panes
  • Next by Date: Re: Abstract base classes in Objective C
  • Previous by thread: Re: Null entries in property lists
  • Next by thread: Re: NSMenuItem - setting font size?
  • Index(es):
    • Date
    • Thread